/** * @brief Reads an amount of data from the SDRAM memory in polling mode. * @param uwStartAddress: Read start address * @param pData: Pointer to data to be read * @param uwDataSize: Size of read data from the memory * @retval SDRAM status */ uint8_t BSP_SDRAM_ReadData(uint32_t uwStartAddress, uint32_t *pData, uint32_t uwDataSize) { if(HAL_SDRAM_Read_32b(&sdramHandle, (uint32_t *)uwStartAddress, pData, uwDataSize) != HAL_OK) { return SDRAM_ERROR; } else { return SDRAM_OK; } }
/** * @brief Reads an amount of data from the SDRAM memory in polling mode. * @param uwStartAddress: Read start address * @param pData: Pointer to data to be read * @param uwDataSize: Size of read data from the memory * @retval SDRAM status */ rt_err_t SDRAM_ReadData(uint32_t Address, uint32_t *Data, uint32_t DataSize) { if(HAL_SDRAM_Read_32b(&sdramHandle, (uint32_t *)Address, Data, DataSize) != HAL_OK) { return RT_ERROR; } else { return RT_EOK; } }
/** * @brief Reads an mount of data from the SDRAM memory in polling mode. * @param uwStartAddress : Read start address * @param pData : Pointer to data to be read * @param uwDataSize: Size of read data from the memory * @retval None */ void BSP_SDRAM_ReadData(uint32_t uwStartAddress, uint32_t *pData, uint32_t uwDataSize) { HAL_SDRAM_Read_32b(&SdramHandle, (uint32_t *)uwStartAddress, pData, uwDataSize); }