STM32H743I_EVAL BSP User Manual: SDRAM Exported Functions

STM32H743I_EVAL BSP

STM32H743I_EVAL BSP User Manual
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 amount 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 amount 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 amount 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 amount of data to the SDRAM memory in DMA mode.
uint8_t BSP_SDRAM_Sendcmd (FMC_SDRAM_CommandTypeDef *SdramCmd)
 Sends command to the SDRAM bank.
__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

Definition at line 186 of file stm32h743i_eval_sdram.c.

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

uint8_t BSP_SDRAM_Init ( void  )

Initializes the SDRAM device.

Return values:
SDRAMstatus

Definition at line 138 of file stm32h743i_eval_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)

Programs the SDRAM device.

Parameters:
RefreshCount,:SDRAM refresh counter value
Return values:
None

Definition at line 212 of file stm32h743i_eval_sdram.c.

References Command, SDRAM_MODEREG_BURST_LENGTH_1, SDRAM_MODEREG_BURST_TYPE_SEQUENTIAL, SDRAM_MODEREG_CAS_LATENCY_3, SDRAM_MODEREG_OPERATING_MODE_STANDARD, SDRAM_MODEREG_WRITEBURST_MODE_SINGLE, SDRAM_TIMEOUT, and sdramHandle.

Referenced by BSP_SDRAM_Init().

void BSP_SDRAM_MspDeInit ( SDRAM_HandleTypeDef *  hsdram,
void *  Params 
)

DeInitializes SDRAM MSP.

Parameters:
hsdram,:SDRAM handle
Params,:Pointer to void
Return values:
None

Definition at line 466 of file stm32h743i_eval_sdram.c.

References SDRAM_MDMAx_CHANNEL, and SDRAM_MDMAx_IRQn.

Referenced by BSP_SDRAM_DeInit().

void BSP_SDRAM_MspInit ( SDRAM_HandleTypeDef *  hsdram,
void *  Params 
)

Initializes SDRAM MSP.

Parameters:
hsdram,:SDRAM handle
Params,:Pointer to void
Return values:
None

Definition at line 366 of file stm32h743i_eval_sdram.c.

References __MDMAx_CLK_ENABLE, SDRAM_MDMAx_CHANNEL, and SDRAM_MDMAx_IRQn.

Referenced by BSP_SDRAM_Init().

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

Reads an amount 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

Definition at line 274 of file stm32h743i_eval_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 amount 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

Definition at line 293 of file stm32h743i_eval_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:
SDRAMstatus

Definition at line 348 of file stm32h743i_eval_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 amount 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

Definition at line 312 of file stm32h743i_eval_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 amount 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

Definition at line 331 of file stm32h743i_eval_sdram.c.

References SDRAM_ERROR, SDRAM_OK, and sdramHandle.

Generated on Wed Aug 23 2017 17:45:14 for STM32H743I_EVAL BSP User Manual by   doxygen 1.7.6.1