Commit 0fca564d authored by Erwan Gouriou's avatar Erwan Gouriou Committed by Kumar Gala
Browse files

ext/hal/st: stm32f3: Disable new API and enable Legacy



A new CAN API is now provided in stm32cube packages.
STM32 can driver is implemented on top of initial CAN API which
is now legacy API.
Disable new API and enable legacy.

Signed-off-by: default avatarErwan Gouriou <erwan.gouriou@linaro.org>
parent 61c74ca0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ zephyr_sources(drivers/src/stm32f3xx_hal.c)
zephyr_sources(drivers/src/stm32f3xx_hal_rcc.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_ADC drivers/src/stm32f3xx_hal_adc.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_ADC_EX drivers/src/stm32f3xx_hal_adc_ex.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_CAN drivers/src/stm32f3xx_hal_can.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_CAN drivers/src/Legacy/stm32f3xx_hal_can.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_CEC drivers/src/stm32f3xx_hal_cec.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_COMP drivers/src/stm32f3xx_hal_comp.c)
zephyr_sources_ifdef(CONFIG_USE_STM32_HAL_CORTEX drivers/src/stm32f3xx_hal_cortex.c)
+9 −0
Original line number Diff line number Diff line
@@ -39,3 +39,12 @@ Patch List:
   *Changes from official delivery:
    -dos2unix applied
    -trailing white spaces removed

   *Disable new CAN API and enable Legacy API
     A new CAN API has been delivered on recent F3 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/stm32f7xx_hal_conf.h
+2 −2
Original line number Diff line number Diff line
@@ -50,8 +50,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_CEC_MODULE_ENABLED
#define HAL_COMP_MODULE_ENABLED
#define HAL_CORTEX_MODULE_ENABLED