Combining HAL and LL driver generates compile warning/error: "assert_param" redefined
If you are compiling the Cube-drivers with the flags: USE_HAL_DRIVER and USE_FULL_LL_DRIVER, and you are including an LL.c-file in your file list (e.g. stm32h7xx_ll_rcc.c) you will get:
stm32h7xx_ll_rcc.c:27:0: error: "assert_param" redefined [-Werror]You get this error because the code:
#ifdef USE_FULL_ASSERT
.............
#else
#define assert_param(expr) ((void)0U)
#endifis included in both the configuration header file: stm32h7xx_hal_conf.h (which is the mandatory configuration file based on the template file supplied in the HAL library) and in every LL.c-file (such as stm32h7xx_ll_rcc.c, stm32h7xx_ll_usart.h, etc.).
Is there a suggested work-around to avoid the redefinition of "assert_param"?
