aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/stm32/Kconfig10
-rw-r--r--src/stm32/fdcan.c4
2 files changed, 14 insertions, 0 deletions
diff --git a/src/stm32/Kconfig b/src/stm32/Kconfig
index 1693f877..b9aac044 100644
--- a/src/stm32/Kconfig
+++ b/src/stm32/Kconfig
@@ -484,6 +484,10 @@ choice
bool "CAN bus (on PC2/PC3)"
depends on HAVE_STM32_FDCANBUS
select CANSERIAL
+ config STM32_MMENU_CANBUS_PH13_PH14
+ bool "CAN bus (on PH13/PH14)" if MACH_STM32H743
+ depends on HAVE_STM32_FDCANBUS
+ select CANSERIAL
config STM32_USBCANBUS_PA11_PA12
bool "USB to CAN bus bridge (USB on PA11/PA12)"
depends on HAVE_STM32_USBCANBUS
@@ -514,6 +518,9 @@ choice
config STM32_CMENU_CANBUS_PC2_PC3
bool "CAN bus (on PC2/PC3)"
depends on HAVE_STM32_FDCANBUS
+ config STM32_CMENU_CANBUS_PH13_PH14
+ bool "CAN bus (on PH13/PH14)" if MACH_STM32H743
+ depends on HAVE_STM32_FDCANBUS
endchoice
@@ -541,5 +548,8 @@ config STM32_CANBUS_PD12_PD13
config STM32_CANBUS_PC2_PC3
bool
default y if STM32_MMENU_CANBUS_PC2_PC3 || STM32_CMENU_CANBUS_PC2_PC3
+config STM32_CANBUS_PH13_PH14
+ bool
+ default y if STM32_MMENU_CANBUS_PH13_PH14 || STM32_CMENU_CANBUS_PH13_PH14
endif
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 \