STM32H735xx 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 (MDMA_HandleTypeDef *hmdma)
 DMA transfer complete callback.
__weak void HAL_SDRAM_DMA_XferErrorCallback (MDMA_HandleTypeDef *hmdma)
 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 217 of file stm32h7xx_hal_sdram.c.

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

DMA transfer complete callback.

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

Definition at line 321 of file stm32h7xx_hal_sdram.c.

Referenced by HAL_SDRAM_Init(), HAL_SDRAM_UnRegisterCallback(), SDRAM_DMACplt(), and SDRAM_DMACpltProt().

DMA transfer complete error callback.

Parameters:
hmdmaDMA handle
Return values:
None

Definition at line 336 of file stm32h7xx_hal_sdram.c.

Referenced by HAL_SDRAM_Init(), HAL_SDRAM_UnRegisterCallback(), and SDRAM_DMAError().

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 165 of file stm32h7xx_hal_sdram.c.

References __SDRAM_HandleTypeDef::DmaXferCpltCallback, __SDRAM_HandleTypeDef::DmaXferErrorCallback, HAL_SDRAM_DMA_XferCpltCallback(), HAL_SDRAM_DMA_XferErrorCallback(), HAL_SDRAM_MspInit(), HAL_SDRAM_RefreshErrorCallback(), HAL_SDRAM_STATE_BUSY, HAL_SDRAM_STATE_READY, HAL_SDRAM_STATE_RESET, __SDRAM_HandleTypeDef::Init, __SDRAM_HandleTypeDef::Instance, __SDRAM_HandleTypeDef::Lock, __SDRAM_HandleTypeDef::MspInitCallback, __SDRAM_HandleTypeDef::RefreshErrorCallback, 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 282 of file stm32h7xx_hal_sdram.c.

References HAL_SDRAM_RefreshErrorCallback(), __SDRAM_HandleTypeDef::Instance, and __SDRAM_HandleTypeDef::RefreshErrorCallback.

SDRAM MSP DeInit.

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

Definition at line 266 of file stm32h7xx_hal_sdram.c.

Referenced by HAL_SDRAM_DeInit(), and HAL_SDRAM_UnRegisterCallback().

SDRAM MSP Init.

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

Definition at line 250 of file stm32h7xx_hal_sdram.c.

Referenced by HAL_SDRAM_Init(), and HAL_SDRAM_UnRegisterCallback().

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 305 of file stm32h7xx_hal_sdram.c.

Referenced by HAL_SDRAM_Init(), HAL_SDRAM_IRQHandler(), and HAL_SDRAM_UnRegisterCallback().