From c68c210a47a8898701cebf95d7d9665d552d9794 Mon Sep 17 00:00:00 2001 From: Ladislas de Toldi Date: Thu, 25 Feb 2021 16:19:17 +0100 Subject: [PATCH] STM32L5 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS --- .../STM32Cube_FW/stm32l5xx_hal_conf.h | 154 ++++++++++++++---- 1 file changed, 123 insertions(+), 31 deletions(-) diff --git a/targets/TARGET_STM/TARGET_STM32L5/STM32Cube_FW/stm32l5xx_hal_conf.h b/targets/TARGET_STM/TARGET_STM32L5/STM32Cube_FW/stm32l5xx_hal_conf.h index 3725c0ca74..bad385f5d6 100644 --- a/targets/TARGET_STM/TARGET_STM32L5/STM32Cube_FW/stm32l5xx_hal_conf.h +++ b/targets/TARGET_STM/TARGET_STM32L5/STM32Cube_FW/stm32l5xx_hal_conf.h @@ -188,37 +188,129 @@ * for possible callback identifiers defined in HAL_PPP_CallbackIDTypeDef * for each PPP peripheral). */ -#define USE_HAL_ADC_REGISTER_CALLBACKS 0U -#define USE_HAL_COMP_REGISTER_CALLBACKS 0U -#define USE_HAL_CRYP_REGISTER_CALLBACKS 0U -#define USE_HAL_DAC_REGISTER_CALLBACKS 0U -#define USE_HAL_DFSDM_REGISTER_CALLBACKS 0U -#define USE_HAL_FDCAN_REGISTER_CALLBACKS 0U -#define USE_HAL_HASH_REGISTER_CALLBACKS 0U -#define USE_HAL_I2C_REGISTER_CALLBACKS 0U -#define USE_HAL_IRDA_REGISTER_CALLBACKS 0U -#define USE_HAL_LPTIM_REGISTER_CALLBACKS 0U -#define USE_HAL_MMC_REGISTER_CALLBACKS 0U -#define USE_HAL_NAND_REGISTER_CALLBACKS 0U -#define USE_HAL_NOR_REGISTER_CALLBACKS 0U -#define USE_HAL_OPAMP_REGISTER_CALLBACKS 0U -#define USE_HAL_OSPI_REGISTER_CALLBACKS 0U -#define USE_HAL_OTFDEC_REGISTER_CALLBACKS 0U -#define USE_HAL_PCD_REGISTER_CALLBACKS 0U -#define USE_HAL_PKA_REGISTER_CALLBACKS 0U -#define USE_HAL_RNG_REGISTER_CALLBACKS 0U -#define USE_HAL_RTC_REGISTER_CALLBACKS 0U -#define USE_HAL_SAI_REGISTER_CALLBACKS 0U -#define USE_HAL_SD_REGISTER_CALLBACKS 0U -#define USE_HAL_SMARTCARD_REGISTER_CALLBACKS 0U -#define USE_HAL_SMBUS_REGISTER_CALLBACKS 0U -#define USE_HAL_SPI_REGISTER_CALLBACKS 0U -#define USE_HAL_SRAM_REGISTER_CALLBACKS 0U -#define USE_HAL_TIM_REGISTER_CALLBACKS 0U -#define USE_HAL_TSC_REGISTER_CALLBACKS 0U -#define USE_HAL_UART_REGISTER_CALLBACKS 0U -#define USE_HAL_USART_REGISTER_CALLBACKS 0U -#define USE_HAL_WWDG_REGISTER_CALLBACKS 0U +#if !defined (USE_HAL_ADC_REGISTER_CALLBACKS) + #define USE_HAL_ADC_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_COMP_REGISTER_CALLBACKS) + #define USE_HAL_COMP_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_CRYP_REGISTER_CALLBACKS) + #define USE_HAL_CRYP_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_DAC_REGISTER_CALLBACKS) + #define USE_HAL_DAC_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_DFSDM_REGISTER_CALLBACKS) + #define USE_HAL_DFSDM_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_FDCAN_REGISTER_CALLBACKS) + #define USE_HAL_FDCAN_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_HASH_REGISTER_CALLBACKS) + #define USE_HAL_HASH_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_I2C_REGISTER_CALLBACKS) + #define USE_HAL_I2C_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_IRDA_REGISTER_CALLBACKS) + #define USE_HAL_IRDA_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_LPTIM_REGISTER_CALLBACKS) + #define USE_HAL_LPTIM_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_MMC_REGISTER_CALLBACKS) + #define USE_HAL_MMC_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_NAND_REGISTER_CALLBACKS) + #define USE_HAL_NAND_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_NOR_REGISTER_CALLBACKS) + #define USE_HAL_NOR_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_OPAMP_REGISTER_CALLBACKS) + #define USE_HAL_OPAMP_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_OSPI_REGISTER_CALLBACKS) + #define USE_HAL_OSPI_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_OTFDEC_REGISTER_CALLBACKS) + #define USE_HAL_OTFDEC_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_PCD_REGISTER_CALLBACKS) + #define USE_HAL_PCD_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_PKA_REGISTER_CALLBACKS) + #define USE_HAL_PKA_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_RNG_REGISTER_CALLBACKS) + #define USE_HAL_RNG_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_RTC_REGISTER_CALLBACKS) + #define USE_HAL_RTC_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_SAI_REGISTER_CALLBACKS) + #define USE_HAL_SAI_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_SD_REGISTER_CALLBACKS) + #define USE_HAL_SD_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_SMARTCARD_REGISTER_CALLBACKS) + #define USE_HAL_SMARTCARD_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_SMBUS_REGISTER_CALLBACKS) + #define USE_HAL_SMBUS_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_SPI_REGISTER_CALLBACKS) + #define USE_HAL_SPI_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_SRAM_REGISTER_CALLBACKS) + #define USE_HAL_SRAM_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_TIM_REGISTER_CALLBACKS) + #define USE_HAL_TIM_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_TSC_REGISTER_CALLBACKS) + #define USE_HAL_TSC_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_UART_REGISTER_CALLBACKS) + #define USE_HAL_UART_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_USART_REGISTER_CALLBACKS) + #define USE_HAL_USART_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_WWDG_REGISTER_CALLBACKS) + #define USE_HAL_WWDG_REGISTER_CALLBACKS 0U +#endif /* ################## SPI peripheral configuration ########################## */