Skip to content
Permalink
Browse files

ext/hal: stm32cube: STM32F4: Enable legacy CAN API

A new CAN API has been delivered on recent F4 stm32cube.
This new API breaks current CAN driver. Disable the new API and
enable the legacy API.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
  • Loading branch information...
erwango authored and nashif committed Jul 31, 2018
1 parent 2469097 commit 57fda14f97836f6d0db3fe00149a50c26e43891a
@@ -7,7 +7,7 @@ zephyr_sources(drivers/src/stm32f4xx_hal.c)
zephyr_sources(drivers/src/stm32f4xx_hal_rcc.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_ADC drivers/src/stm32f4xx_hal_adc.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_ADC_EX drivers/src/stm32f4xx_hal_adc_ex.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_CAN drivers/src/stm32f4xx_hal_can.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_CAN drivers/src/Legacy/stm32f4xx_hal_can.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_CEC drivers/src/stm32f4xx_hal_cec.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_CORTEX drivers/src/stm32f4xx_hal_cortex.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_CRC drivers/src/stm32f4xx_hal_crc.c)
@@ -50,3 +50,13 @@ Patch List:
Impacted files:
drivers/include/stm32f4xx_ll_rcc.h
ST Bug tracker ID: 50086

*Disable new CAN API and enable Legacy API
A new CAN API has been delivered on recent F4 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/stm32f4xx_hal_conf.h
drivers/src/Legacy/stm32f4_hal_can.c
@@ -58,8 +58,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_CRC_MODULE_ENABLED
#define HAL_CEC_MODULE_ENABLED
#define HAL_CRYP_MODULE_ENABLED
Oops, something went wrong.

0 comments on commit 57fda14

Please sign in to comment.
You can’t perform that action at this time.