STM32F469I-Discovery BSP User Manual: STM32469I Discovery SDRAM Exported Functions

STM32F469I-Discovery BSP Drivers

STM32F469I-Discovery BSP User Manual
STM32469I Discovery SDRAM Exported Functions

Functions

uint8_t BSP_SDRAM_Init (void)
 Initializes the SDRAM device.
uint8_t BSP_SDRAM_DeInit (void)
 DeInitializes the SDRAM device.
void BSP_SDRAM_Initialization_sequence (uint32_t RefreshCount)
 Programs the SDRAM device.
uint8_t BSP_SDRAM_ReadData (uint32_t uwStartAddress, uint32_t *pData, uint32_t uwDataSize)
 Reads an mount of data from the SDRAM memory in polling mode.
uint8_t BSP_SDRAM_ReadData_DMA (uint32_t uwStartAddress, uint32_t *pData, uint32_t uwDataSize)
 Reads an mount of data from the SDRAM memory in DMA mode.
uint8_t BSP_SDRAM_WriteData (uint32_t uwStartAddress, uint32_t *pData, uint32_t uwDataSize)
 Writes an mount of data to the SDRAM memory in polling mode.
uint8_t BSP_SDRAM_WriteData_DMA (uint32_t uwStartAddress, uint32_t *pData, uint32_t uwDataSize)
 Writes an mount of data to the SDRAM memory in DMA mode.
uint8_t BSP_SDRAM_Sendcmd (FMC_SDRAM_CommandTypeDef *SdramCmd)
 Sends command to the SDRAM bank.
void BSP_SDRAM_DMA_IRQHandler (void)
 Handles SDRAM DMA transfer interrupt request.
__weak void BSP_SDRAM_MspInit (SDRAM_HandleTypeDef *hsdram, void *Params)
 Initializes SDRAM MSP.
__weak void BSP_SDRAM_MspDeInit (SDRAM_HandleTypeDef *hsdram, void *Params)
 DeInitializes SDRAM MSP.

Function Documentation

uint8_t BSP_SDRAM_DeInit ( void  )

DeInitializes the SDRAM device.

Return values:
SDRAMstatus : SDRAM_OK or SDRAM_ERROR.

Definition at line 199 of file stm32469i_discovery_sdram.c.

References BSP_SDRAM_MspDeInit(), SDRAM_ERROR, SDRAM_OK, and sdramHandle.

void BSP_SDRAM_DMA_IRQHandler ( void  )

Handles SDRAM DMA transfer interrupt request.

Definition at line 373 of file stm32469i_discovery_sdram.c.

References sdramHandle.

uint8_t BSP_SDRAM_Init ( void  )

Initializes the SDRAM device.

Return values:
SDRAMstatus

Definition at line 150 of file stm32469i_discovery_sdram.c.

References BSP_SDRAM_Initialization_sequence(), BSP_SDRAM_MspInit(), REFRESH_COUNT, SDCLOCK_PERIOD, SDRAM_ERROR, SDRAM_MEMORY_WIDTH, SDRAM_OK, sdramHandle, and Timing.

Referenced by BSP_LCD_InitEx().

void BSP_SDRAM_Initialization_sequence ( uint32_t  RefreshCount)
void BSP_SDRAM_MspDeInit ( SDRAM_HandleTypeDef *  hsdram,
void *  Params 
)

DeInitializes SDRAM MSP.

Note:
This function can be surcharged by application code.
Parameters:
hsdram,:pointer on SDRAM handle
Params,:pointer on additional configuration parameters, can be NULL.

Definition at line 491 of file stm32469i_discovery_sdram.c.

References SDRAM_DMAx_IRQn, and SDRAM_DMAx_STREAM.

Referenced by BSP_SDRAM_DeInit().

void BSP_SDRAM_MspInit ( SDRAM_HandleTypeDef *  hsdram,
void *  Params 
)

Initializes SDRAM MSP.

Note:
This function can be surcharged by application code.
Parameters:
hsdram,:pointer on SDRAM handle
Params,:pointer on additional configuration parameters, can be NULL.

Definition at line 384 of file stm32469i_discovery_sdram.c.

References __DMAx_CLK_ENABLE, SDRAM_DMAx_CHANNEL, SDRAM_DMAx_IRQn, and SDRAM_DMAx_STREAM.

Referenced by BSP_SDRAM_Init().

uint8_t BSP_SDRAM_ReadData ( uint32_t  uwStartAddress,
uint32_t *  pData,
uint32_t  uwDataSize 
)

Reads an mount of data from the SDRAM memory in polling mode.

Parameters:
uwStartAddress,:Read start address
pData,:Pointer to data to be read
uwDataSize,:Size of read data from the memory
Return values:
SDRAMstatus : SDRAM_OK or SDRAM_ERROR.

Definition at line 284 of file stm32469i_discovery_sdram.c.

References SDRAM_ERROR, SDRAM_OK, and sdramHandle.

uint8_t BSP_SDRAM_ReadData_DMA ( uint32_t  uwStartAddress,
uint32_t *  pData,
uint32_t  uwDataSize 
)

Reads an mount of data from the SDRAM memory in DMA mode.

Parameters:
uwStartAddress,:Read start address
pData,:Pointer to data to be read
uwDataSize,:Size of read data from the memory
Return values:
SDRAMstatus : SDRAM_OK or SDRAM_ERROR.

Definition at line 303 of file stm32469i_discovery_sdram.c.

References SDRAM_ERROR, SDRAM_OK, and sdramHandle.

uint8_t BSP_SDRAM_Sendcmd ( FMC_SDRAM_CommandTypeDef *  SdramCmd)

Sends command to the SDRAM bank.

Parameters:
SdramCmd,:Pointer to SDRAM command structure
Return values:
HALstatus : SDRAM_OK or SDRAM_ERROR.

Definition at line 358 of file stm32469i_discovery_sdram.c.

References SDRAM_ERROR, SDRAM_OK, SDRAM_TIMEOUT, and sdramHandle.

uint8_t BSP_SDRAM_WriteData ( uint32_t  uwStartAddress,
uint32_t *  pData,
uint32_t  uwDataSize 
)

Writes an mount of data to the SDRAM memory in polling mode.

Parameters:
uwStartAddress,:Write start address
pData,:Pointer to data to be written
uwDataSize,:Size of written data from the memory
Return values:
SDRAMstatus : SDRAM_OK or SDRAM_ERROR.

Definition at line 322 of file stm32469i_discovery_sdram.c.

References SDRAM_ERROR, SDRAM_OK, and sdramHandle.

uint8_t BSP_SDRAM_WriteData_DMA ( uint32_t  uwStartAddress,
uint32_t *  pData,
uint32_t  uwDataSize 
)

Writes an mount of data to the SDRAM memory in DMA mode.

Parameters:
uwStartAddress,:Write start address
pData,:Pointer to data to be written
uwDataSize,:Size of written data from the memory
Return values:
SDRAMstatus : SDRAM_OK or SDRAM_ERROR.

Definition at line 341 of file stm32469i_discovery_sdram.c.

References SDRAM_ERROR, SDRAM_OK, and sdramHandle.

Generated on Wed Jan 13 2016 10:58:46 for STM32F469I-Discovery BSP User Manual by   doxygen 1.7.6.1