ext/hal: stm32cube: STM32L4: Enable legacy CAN API
A new CAN API has been delivered on recent L4 stm32cube. This new API breaks current CAN driver. Disable the new API and enable the legacy API. Fixes #8931 Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
6409f9a944
commit
ee29e60325
4 changed files with 1500 additions and 7 deletions
|
@ -7,7 +7,7 @@ zephyr_sources(drivers/src/stm32l4xx_hal.c)
|
|||
zephyr_sources(drivers/src/stm32l4xx_hal_rcc.c)
|
||||
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_ADC drivers/src/stm32l4xx_hal_adc.c)
|
||||
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_ADC_EX drivers/src/stm32l4xx_hal_adc_ex.c)
|
||||
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_CAN drivers/src/stm32l4xx_hal_can.c)
|
||||
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_CAN drivers/src/Legacy/stm32l4xx_hal_can.c)
|
||||
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_COMP drivers/src/stm32l4xx_hal_comp.c)
|
||||
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_CORTEX drivers/src/stm32l4xx_hal_cortex.c)
|
||||
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_CRC drivers/src/stm32l4xx_hal_crc.c)
|
||||
|
|
|
@ -43,3 +43,14 @@ Patch List:
|
|||
Impacted files:
|
||||
ext/hal/st/stm32cube/stm32l4xx/drivers/include/stm32l4xx_ll_pwr.h
|
||||
ST Bug tracker ID: 47844
|
||||
|
||||
|
||||
*Disable new CAN API and enable Legacy API
|
||||
A new CAN API has been delivered on recent L4 stm32cube.
|
||||
This new API breaks current CAN driver. Disable the new API and enable the
|
||||
legacy API.
|
||||
Disable related systematic warning message
|
||||
Impacted files:
|
||||
CMakeLists.txt
|
||||
drivers/include/stm32l4xx_hal_conf.h
|
||||
drivers/src/Legacy/stm32l4_hal_can.c
|
||||
|
|
|
@ -52,8 +52,8 @@
|
|||
*/
|
||||
#define HAL_MODULE_ENABLED
|
||||
#define HAL_ADC_MODULE_ENABLED
|
||||
#define HAL_CAN_MODULE_ENABLED
|
||||
/* #define HAL_CAN_LEGACY_MODULE_ENABLED */
|
||||
/* #define HAL_CAN_MODULE_ENABLED */
|
||||
#define HAL_CAN_LEGACY_MODULE_ENABLED
|
||||
#define HAL_COMP_MODULE_ENABLED
|
||||
#define HAL_CORTEX_MODULE_ENABLED
|
||||
#define HAL_CRC_MODULE_ENABLED
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue