Skip to content

Commit c927317

Browse files
committed
system(H5): update stm32h5xx_hal_conf_default.h
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 5adc06e commit c927317

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Diff for: system/STM32U5xx/stm32u5xx_hal_conf_default.h

+16
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ extern "C" {
8686
#define HAL_RTC_MODULE_ENABLED
8787
#define HAL_SAI_MODULE_ENABLED
8888
#define HAL_SD_MODULE_ENABLED
89+
#define HAL_SDIO_MODULE_ENABLED
8990
#define HAL_SMARTCARD_MODULE_ENABLED
9091
#define HAL_SMBUS_MODULE_ENABLED
9192
#define HAL_SPI_MODULE_ENABLED
@@ -308,6 +309,9 @@ vary depending on the variations in voltage and temperature.*/
308309
#if !defined(USE_HAL_SD_REGISTER_CALLBACKS)
309310
#define USE_HAL_SD_REGISTER_CALLBACKS 0U /* SD register callback disabled */
310311
#endif
312+
#if !defined(USE_HAL_SDIO_REGISTER_CALLBACKS)
313+
#define USE_HAL_SDIO_REGISTER_CALLBACKS 0U /* SDIO register callback disabled */
314+
#endif
311315
#if !defined(USE_HAL_SDRAM_REGISTER_CALLBACKS)
312316
#define USE_HAL_SDRAM_REGISTER_CALLBACKS 0U /* SDRAM register callback disabled */
313317
#endif
@@ -357,6 +361,14 @@ vary depending on the variations in voltage and temperature.*/
357361
#define USE_SD_TRANSCEIVER 0U
358362
#endif
359363

364+
/* ################## SDIO peripheral configuration ########################## */
365+
#if !defined (USE_SDIO_TRANSCEIVER)
366+
#define USE_SDIO_TRANSCEIVER 0U
367+
#endif
368+
#if !defined (SDIO_MAX_IO_NUMBER)
369+
#define SDIO_MAX_IO_NUMBER 7U /*!< SDIO device support maximum IO number */
370+
#endif
371+
360372
/* Includes ------------------------------------------------------------------*/
361373
/**
362374
* @brief Include module's header file
@@ -502,6 +514,10 @@ vary depending on the variations in voltage and temperature.*/
502514
#include "stm32u5xx_hal_sd.h"
503515
#endif /* HAL_SD_MODULE_ENABLED */
504516

517+
#ifdef HAL_SDIO_MODULE_ENABLED
518+
#include "stm32u5xx_hal_sdio.h"
519+
#endif /* HAL_SDIO_MODULE_ENABLED */
520+
505521
#ifdef HAL_SMBUS_MODULE_ENABLED
506522
#include "stm32u5xx_hal_smbus.h"
507523
#endif /* HAL_SMBUS_MODULE_ENABLED */

0 commit comments

Comments
 (0)