diff options
Diffstat (limited to 'src/stm32/fdcan.c')
-rw-r--r-- | src/stm32/fdcan.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/stm32/fdcan.c b/src/stm32/fdcan.c index 3b01b482..9198c7dc 100644 --- a/src/stm32/fdcan.c +++ b/src/stm32/fdcan.c @@ -46,9 +46,14 @@ DECL_CONSTANT_STR("RESERVE_PINS_CAN", "PC2,PC3"); #define GPIO_Rx GPIO('C', 2) #define GPIO_Tx GPIO('C', 3) +#elif CONFIG_STM32_CANBUS_PB12_PB13 + DECL_CONSTANT_STR("RESERVE_PINS_CAN", "PB12,PB13"); + #define GPIO_Rx GPIO('B', 12) + #define GPIO_Tx GPIO('B', 13) #endif -#if !(CONFIG_STM32_CANBUS_PB0_PB1 || CONFIG_STM32_CANBUS_PC2_PC3) +#if !(CONFIG_STM32_CANBUS_PB0_PB1 || CONFIG_STM32_CANBUS_PC2_PC3 \ + || CONFIG_STM32_CANBUS_PB12_PB13) #define SOC_CAN FDCAN1 #define MSG_RAM (((struct fdcan_ram_layout*)SRAMCAN_BASE)->fdcan1) #else |