stm32: Fixed CAN bus for STM32F4, there were syntax errors that prevented compilation

Signed-off-by: Pontus Borg <liquidpontus@yahoo.se>
This commit is contained in:
bondus 2020-10-09 19:39:23 +02:00 committed by KevinOConnor
parent 27249dc709
commit 387fceb453
1 changed files with 3 additions and 3 deletions

View File

@ -64,15 +64,15 @@ DECL_CONSTANT_STR("RESERVE_PINS_CAN", "PB12,PB13");
#if (CONFIG_MACH_STM32F4)
#warning CAN on STM32F4 is untested
#if (CONFIG_CAN_PINS_PA11_PA12 ||
CONFIG_CAN_PINS_PB8_PB9 ||
#if (CONFIG_CAN_PINS_PA11_PA12 || \
CONFIG_CAN_PINS_PB8_PB9 || \
CONFIG_CAN_PINS_PI8_PH13)
#define SOC_CAN CAN1
#define CAN_RX0_IRQn CAN1_RX0_IRQn
#define CAN_RX1_IRQn CAN1_RX1_IRQn
#define CAN_TX_IRQn CAN1_TX_IRQn
#define CAN_SCE_IRQn CAN1_SCE_IRQn
#elsif ((CONFIG_CAN_PINS_PB5_PB6 || CONFIG_CAN_PINS_PB12_PB13)
#elif ((CONFIG_CAN_PINS_PB5_PB6 || CONFIG_CAN_PINS_PB12_PB13)
#define SOC_CAN CAN2
#define CAN_RX0_IRQn CAN2_RX0_IRQn
#define CAN_RX1_IRQn CAN2_RX1_IRQn