STM32L5 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS

pull/14351/head
Ladislas de Toldi 2021-02-25 16:19:17 +01:00
parent 40120e6036
commit c68c210a47
No known key found for this signature in database
GPG Key ID: C5241848279CD797
1 changed files with 123 additions and 31 deletions

View File

@ -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 ########################## */