HAL SRAM Overview ¶
Introducing SRAM ¶
- group SRAM_Introduction
-
The SRAM hardware abstraction layer provides a set of APIs to interface with SRAM memory devices via the STM32 Flexible Memory Controller (FMC) peripheral.
The SRAM HAL driver simplifies the initialization and configuration, ensuring the memory is accessible and ready for use.
This abstraction layer ensures portability and ease of use across different STM32 series.
Module and files ¶
The following diagram illustrates the SRAM module and its associated files.
Component diagram ¶
The following diagram illustrates the software components involved in the SRAM module. It shows the interactions between the user application, HAL drivers, low-level drivers, and the hardware components.
Configuration table ¶
The following table lists the configuration defines for the HAL SRAM module, specifying their locations, default values, and descriptions:
- group SRAM_Configuration_Table
-
¶
Configuration inside the SRAM driver ¶
Config defines
Description
Default value
Note
USE_ASSERT_DBG_PARAM
from IDE
NA
Allows to use the assert check parameters.
USE_ASSERT_DBG_STATE
from IDE
NA
Allows to use the assert check states.
USE_HAL_CHECK_PARAM
from hal_conf.h
0U
Allows to use the run-time check parameters.
USE_HAL_SRAM_MODULE
from hal_conf.h
1U
Allows to use the HAL SRAM module.
USE_FMC_CLK_ENABLE_MODEL
from hal_conf.h
HAL_CLK_ENABLE_NO
Allows to enable the FMC clock.
USE_HAL_SRAM_USER_DATA
from hal_conf.h
0U
Allows to use user data.