diff --git a/targets/TARGET_STM/TARGET_STM32L4/STM32Cube_FW/stm32l4xx_hal_conf.h b/targets/TARGET_STM/TARGET_STM32L4/STM32Cube_FW/stm32l4xx_hal_conf.h index 4d84aaec3f..30fc4ce01d 100644 --- a/targets/TARGET_STM/TARGET_STM32L4/STM32Cube_FW/stm32l4xx_hal_conf.h +++ b/targets/TARGET_STM/TARGET_STM32L4/STM32Cube_FW/stm32l4xx_hal_conf.h @@ -201,40 +201,141 @@ * for possible callback identifiers defined in HAL_PPP_CallbackIDTypeDef * for each PPP peripheral). */ -#define USE_HAL_ADC_REGISTER_CALLBACKS 0U -#define USE_HAL_CAN_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_DCMI_REGISTER_CALLBACKS 0U -#define USE_HAL_DFSDM_REGISTER_CALLBACKS 0U -#define USE_HAL_DMA2D_REGISTER_CALLBACKS 0U -#define USE_HAL_DSI_REGISTER_CALLBACKS 0U -#define USE_HAL_GFXMMU_REGISTER_CALLBACKS 0U -#define USE_HAL_HASH_REGISTER_CALLBACKS 0U -#define USE_HAL_HCD_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_LTDC_REGISTER_CALLBACKS 0U -#define USE_HAL_MMC_REGISTER_CALLBACKS 0U -#define USE_HAL_OPAMP_REGISTER_CALLBACKS 0U -#define USE_HAL_OSPI_REGISTER_CALLBACKS 0U -#define USE_HAL_PCD_REGISTER_CALLBACKS 0U -#define USE_HAL_QSPI_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_SWPMI_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_CAN_REGISTER_CALLBACKS) + #define USE_HAL_CAN_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_DCMI_REGISTER_CALLBACKS) + #define USE_HAL_DCMI_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_DFSDM_REGISTER_CALLBACKS) + #define USE_HAL_DFSDM_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_DMA2D_REGISTER_CALLBACKS) + #define USE_HAL_DMA2D_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_DSI_REGISTER_CALLBACKS) + #define USE_HAL_DSI_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_GFXMMU_REGISTER_CALLBACKS) + #define USE_HAL_GFXMMU_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_HASH_REGISTER_CALLBACKS) + #define USE_HAL_HASH_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_HCD_REGISTER_CALLBACKS) + #define USE_HAL_HCD_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_LTDC_REGISTER_CALLBACKS) + #define USE_HAL_LTDC_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_MMC_REGISTER_CALLBACKS) + #define USE_HAL_MMC_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_PCD_REGISTER_CALLBACKS) + #define USE_HAL_PCD_REGISTER_CALLBACKS 0U +#endif + +#if !defined (USE_HAL_QSPI_REGISTER_CALLBACKS) + #define USE_HAL_QSPI_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_SWPMI_REGISTER_CALLBACKS) + #define USE_HAL_SWPMI_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 ########################## */