STM32F439xx HAL User Manual
Functions
Initialization and de-initialization functions
SDRAM Exported Functions

Initialization and Configuration functions. More...

Functions

HAL_StatusTypeDef HAL_SDRAM_Init (SDRAM_HandleTypeDef *hsdram, FMC_SDRAM_TimingTypeDef *Timing)
 Performs the SDRAM device initialization sequence.
HAL_StatusTypeDef HAL_SDRAM_DeInit (SDRAM_HandleTypeDef *hsdram)
 Perform the SDRAM device initialization sequence.
__weak void HAL_SDRAM_MspInit (SDRAM_HandleTypeDef *hsdram)
 SDRAM MSP Init.
__weak void HAL_SDRAM_MspDeInit (SDRAM_HandleTypeDef *hsdram)
 SDRAM MSP DeInit.
void HAL_SDRAM_IRQHandler (SDRAM_HandleTypeDef *hsdram)
 This function handles SDRAM refresh error interrupt request.
__weak void HAL_SDRAM_RefreshErrorCallback (SDRAM_HandleTypeDef *hsdram)
 SDRAM Refresh error callback.
__weak void HAL_SDRAM_DMA_XferCpltCallback (DMA_HandleTypeDef *hdma)
 DMA transfer complete callback.
__weak void HAL_SDRAM_DMA_XferErrorCallback (DMA_HandleTypeDef *hdma)
 DMA transfer complete error callback.

Detailed Description

Initialization and Configuration functions.

  ==============================================================================
           ##### SDRAM Initialization and de_initialization functions #####
  ==============================================================================
  [..]  
    This section provides functions allowing to initialize/de-initialize
    the SDRAM memory
  

Function Documentation

HAL_StatusTypeDef HAL_SDRAM_DeInit ( SDRAM_HandleTypeDef hsdram)

Perform the SDRAM device initialization sequence.

Parameters:
hsdrampointer to a SDRAM_HandleTypeDef structure that contains the configuration information for SDRAM module.
Return values:
HALstatus

Definition at line 175 of file stm32f4xx_hal_sdram.c.

References HAL_SDRAM_MspDeInit(), HAL_SDRAM_STATE_RESET, SDRAM_HandleTypeDef::Init, SDRAM_HandleTypeDef::Instance, and SDRAM_HandleTypeDef::State.

DMA transfer complete callback.

Parameters:
hdmapointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA module.
Return values:
None

Definition at line 262 of file stm32f4xx_hal_sdram.c.

Referenced by HAL_SDRAM_Read_DMA(), and HAL_SDRAM_Write_DMA().

DMA transfer complete error callback.

Parameters:
hdmaDMA handle
Return values:
None

Definition at line 276 of file stm32f4xx_hal_sdram.c.

Referenced by HAL_SDRAM_Read_DMA(), and HAL_SDRAM_Write_DMA().

HAL_StatusTypeDef HAL_SDRAM_Init ( SDRAM_HandleTypeDef hsdram,
FMC_SDRAM_TimingTypeDef *  Timing 
)

Performs the SDRAM device initialization sequence.

Parameters:
hsdrampointer to a SDRAM_HandleTypeDef structure that contains the configuration information for SDRAM module.
TimingPointer to SDRAM control timing structure
Return values:
HALstatus

Definition at line 138 of file stm32f4xx_hal_sdram.c.

References HAL_SDRAM_MspInit(), HAL_SDRAM_STATE_BUSY, HAL_SDRAM_STATE_READY, HAL_SDRAM_STATE_RESET, SDRAM_HandleTypeDef::Init, SDRAM_HandleTypeDef::Instance, SDRAM_HandleTypeDef::Lock, and SDRAM_HandleTypeDef::State.

This function handles SDRAM refresh error interrupt request.

Parameters:
hsdrampointer to a SDRAM_HandleTypeDef structure that contains the configuration information for SDRAM module.
Return values:
HALstatus

Definition at line 228 of file stm32f4xx_hal_sdram.c.

References HAL_SDRAM_RefreshErrorCallback(), and SDRAM_HandleTypeDef::Instance.

SDRAM MSP DeInit.

Parameters:
hsdrampointer to a SDRAM_HandleTypeDef structure that contains the configuration information for SDRAM module.
Return values:
None

Definition at line 213 of file stm32f4xx_hal_sdram.c.

Referenced by HAL_SDRAM_DeInit().

SDRAM MSP Init.

Parameters:
hsdrampointer to a SDRAM_HandleTypeDef structure that contains the configuration information for SDRAM module.
Return values:
None

Definition at line 198 of file stm32f4xx_hal_sdram.c.

Referenced by HAL_SDRAM_Init().

SDRAM Refresh error callback.

Parameters:
hsdrampointer to a SDRAM_HandleTypeDef structure that contains the configuration information for SDRAM module.
Return values:
None

Definition at line 247 of file stm32f4xx_hal_sdram.c.

Referenced by HAL_SDRAM_IRQHandler().