@@ -52,6 +52,7 @@ extern "C" {
5252#define HAL_DTS_MODULE_ENABLED
5353#define HAL_DSI_MODULE_ENABLED
5454#define HAL_ETH_MODULE_ENABLED
55+ /* #define HAL_ETH_LEGACY_MODULE_ENABLED */
5556#define HAL_EXTI_MODULE_ENABLED
5657#define HAL_FDCAN_MODULE_ENABLED
5758#define HAL_FLASH_MODULE_ENABLED
@@ -176,11 +177,15 @@ in voltage and temperature.*/
176177#define USE_RTOS 0
177178#endif
178179#if !defined (USE_SD_TRANSCEIVER )
179- #define USE_SD_TRANSCEIVER 0U /*!< use uSD Transceiver */
180+ #define USE_SD_TRANSCEIVER 0U /*!< use uSD Transceiver */
180181#endif
181182#if !defined (USE_SPI_CRC )
182- #define USE_SPI_CRC 0U /*!< use CRC in SPI */
183+ #define USE_SPI_CRC 0U /*!< use CRC in SPI */
183184#endif
185+ #if !defined (USE_FLASH_ECC )
186+ #define USE_FLASH_ECC 0U /*!< use ECC error management in FLASH */
187+ #endif
188+
184189
185190#if !defined(USE_HAL_ADC_REGISTER_CALLBACKS )
186191#define USE_HAL_ADC_REGISTER_CALLBACKS 0U /* ADC register callback disabled */
@@ -394,6 +399,10 @@ in voltage and temperature.*/
394399#include "stm32h7xx_hal_eth.h"
395400#endif /* HAL_ETH_MODULE_ENABLED */
396401
402+ #ifdef HAL_ETH_LEGACY_MODULE_ENABLED
403+ #include "stm32h7xx_hal_eth_legacy.h"
404+ #endif /* HAL_ETH_LEGACY_MODULE_ENABLED */
405+
397406#ifdef HAL_EXTI_MODULE_ENABLED
398407#include "stm32h7xx_hal_exti.h"
399408#endif /* HAL_EXTI_MODULE_ENABLED */
0 commit comments