diff options
author | FrY Sennberg <fryakatkop@gmail.com> | 2025-03-28 00:25:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-27 19:25:26 -0400 |
commit | d679f711ebec3c802407b8d82be416e44df21f21 (patch) | |
tree | e66dfc91fb5e4c39de86fe53d959f1b5bf13b6b5 /src/stm32/fdcan.c | |
parent | 68dbbc8d411d0d4961fd0837b00244a6bba1eefd (diff) | |
download | kutter-d679f711ebec3c802407b8d82be416e44df21f21.tar.gz kutter-d679f711ebec3c802407b8d82be416e44df21f21.tar.xz kutter-d679f711ebec3c802407b8d82be416e44df21f21.zip |
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 <fryakatkop@gmail.com>
Diffstat (limited to 'src/stm32/fdcan.c')
-rw-r--r-- | src/stm32/fdcan.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 \ |