From d679f711ebec3c802407b8d82be416e44df21f21 Mon Sep 17 00:00:00 2001 From: FrY Sennberg Date: Fri, 28 Mar 2025 00:25:26 +0100 Subject: stm32: Added PH13/14 CAN pin option for stm32h743 (#6857) Added the option to select PH13/PH14 as CAN pins. Signed-off-by: Christoph Frei --- src/stm32/fdcan.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/stm32/fdcan.c') diff --git a/src/stm32/fdcan.c b/src/stm32/fdcan.c index 8a2d1ab2..25a334af 100644 --- a/src/stm32/fdcan.c +++ b/src/stm32/fdcan.c @@ -55,6 +55,10 @@ DECL_CONSTANT_STR("RESERVE_PINS_CAN", "PB12,PB13"); #define GPIO_Rx GPIO('B', 12) #define GPIO_Tx GPIO('B', 13) +#elif CONFIG_STM32_CANBUS_PH13_PH14 + DECL_CONSTANT_STR("RESERVE_PINS_CAN", "PH13,PH14"); + #define GPIO_Rx GPIO('H', 14) + #define GPIO_Tx GPIO('H', 13) #endif #if !(CONFIG_STM32_CANBUS_PB0_PB1 || CONFIG_STM32_CANBUS_PC2_PC3 \ -- cgit v1.2.3-70-g09d2