@@ -88,6 +88,7 @@ extern "C" {
8888#define HAL_RTC_MODULE_ENABLED
8989#define HAL_SAI_MODULE_ENABLED
9090#define HAL_SD_MODULE_ENABLED
91+ #define HAL_SDIO_MODULE_ENABLED
9192#define HAL_SDRAM_MODULE_ENABLED
9293#define HAL_SMARTCARD_MODULE_ENABLED
9394#define HAL_SMBUS_MODULE_ENABLED
@@ -148,16 +149,16 @@ extern "C" {
148149#if !defined (LSI_VALUE )
149150#define LSI_VALUE (32000UL) /*!< LSI Typical Value in Hz*/
150151#endif /* LSI_VALUE */ /*!< Value of the Internal Low Speed oscillator in Hz
151- The real value may vary depending on the variations
152- in voltage and temperature.*/
152+ The real value may vary depending on the variations
153+ in voltage and temperature.*/
153154
154155/**
155156 * @brief External clock source for I2S peripheral
156157 * This value is used by the I2S HAL module to compute the I2S clock source
157158 * frequency, this source is inserted directly through I2S_CKIN pad.
158159 */
159160#if !defined (EXTERNAL_CLOCK_VALUE )
160- #define EXTERNAL_CLOCK_VALUE 12288000L /*!< Value of the External clock in Hz*/
161+ #define EXTERNAL_CLOCK_VALUE 12288000UL /*!< Value of the External clock in Hz*/
161162#endif /* EXTERNAL_CLOCK_VALUE */
162163
163164/* Tip: To avoid modifying this file each time you need to use different HSE,
@@ -185,7 +186,12 @@ in voltage and temperature.*/
185186#if !defined (USE_FLASH_ECC )
186187#define USE_FLASH_ECC 0U /*!< use ECC error management in FLASH */
187188#endif
188-
189+ #if !defined (USE_SDIO_TRANSCEIVER )
190+ #define USE_SDIO_TRANSCEIVER 0U
191+ #endif
192+ #if !defined (SDIO_MAX_IO_NUMBER )
193+ #define SDIO_MAX_IO_NUMBER 7U /*!< SDIO device support maximum IO number */
194+ #endif
189195
190196#if !defined(USE_HAL_ADC_REGISTER_CALLBACKS )
191197#define USE_HAL_ADC_REGISTER_CALLBACKS 0U /* ADC register callback disabled */
@@ -551,6 +557,10 @@ in voltage and temperature.*/
551557#include "stm32h7xx_hal_sd.h"
552558#endif /* HAL_SD_MODULE_ENABLED */
553559
560+ #ifdef HAL_SDIO_MODULE_ENABLED
561+ #include "stm32h7xx_hal_sdio.h"
562+ #endif /* HAL_SDIO_MODULE_ENABLED */
563+
554564#ifdef HAL_SDRAM_MODULE_ENABLED
555565#include "stm32h7xx_hal_sdram.h"
556566#endif /* HAL_SDRAM_MODULE_ENABLED */
0 commit comments