Skip to content

Commit 0852096

Browse files
committed
system(h5): update STM32H5xx hal default config
Signed-off-by: Frederic Pillon <[email protected]>
1 parent c93f1c5 commit 0852096

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Diff for: system/STM32H5xx/stm32h5xx_hal_conf_default.h

+16
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ extern "C" {
8282
#define HAL_RTC_MODULE_ENABLED
8383
#define HAL_SAI_MODULE_ENABLED
8484
#define HAL_SD_MODULE_ENABLED
85+
#define HAL_SDIO_MODULE_ENABLED
8586
#define HAL_SDRAM_MODULE_ENABLED
8687
#define HAL_SMARTCARD_MODULE_ENABLED
8788
#define HAL_SMBUS_MODULE_ENABLED
@@ -200,6 +201,14 @@ in voltage and temperature.*/
200201
*/
201202
/* #define USE_FULL_ASSERT 1U */
202203

204+
/* ############################################ Max IO function number for SDIO device ############################## */
205+
#if !defined(SDIO_MAX_IO_NUMBER)
206+
#define SDIO_MAX_IO_NUMBER 7U /*!< SDIO device support maximum IO number */
207+
#endif
208+
#if !defined(USE_SDIO_TRANSCEIVER)
209+
#define USE_SDIO_TRANSCEIVER 0U /*!< SDIO Transceiver */
210+
#endif
211+
203212
/* ############################################ Register callback feature configuration ############################# */
204213
/**
205214
* @brief Set below the peripheral configuration to "1U" to add the support
@@ -303,6 +312,9 @@ in voltage and temperature.*/
303312
#if !defined(USE_HAL_SD_REGISTER_CALLBACKS)
304313
#define USE_HAL_SD_REGISTER_CALLBACKS 0U /* SD register callback disabled */
305314
#endif
315+
#if !defined(USE_HAL_SDIO_REGISTER_CALLBACKS)
316+
#define USE_HAL_SDIO_REGISTER_CALLBACKS 0U /* SDIO register callback disabled */
317+
#endif
306318
#if !defined(USE_HAL_SDRAM_REGISTER_CALLBACKS)
307319
#define USE_HAL_SDRAM_REGISTER_CALLBACKS 0U /* SDRAM register callback disabled */
308320
#endif
@@ -472,6 +484,10 @@ in voltage and temperature.*/
472484
#include "stm32h5xx_hal_sd.h"
473485
#endif /* HAL_SD_MODULE_ENABLED */
474486

487+
#ifdef HAL_SDIO_MODULE_ENABLED
488+
#include "stm32h5xx_hal_sdio.h"
489+
#endif /* HAL_SDIO_MODULE_ENABLED */
490+
475491
#ifdef HAL_SMBUS_MODULE_ENABLED
476492
#include "stm32h5xx_hal_smbus.h"
477493
#endif /* HAL_SMBUS_MODULE_ENABLED */

0 commit comments

Comments
 (0)