aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver <oli1111@web.de>2021-04-05 21:58:57 +0200
committerKevinOConnor <kevin@koconnor.net>2021-04-07 13:06:13 -0400
commit41999eb94d8cc8a2c119a010249f085093ee2d98 (patch)
treed2a642f41f14af673045509ba71def882fc69ee8
parent689c2f9baf835b55cdbb68d78b0913d8ca6df317 (diff)
downloadkutter-41999eb94d8cc8a2c119a010249f085093ee2d98.tar.gz
kutter-41999eb94d8cc8a2c119a010249f085093ee2d98.tar.xz
kutter-41999eb94d8cc8a2c119a010249f085093ee2d98.zip
stm32: CAN Kconfig typo
Fixed simple typo in the Kconfig and can.c. stm32f4 CAN Pins Signed-off-by: Oliver Walter <oli1111@web.de>
-rw-r--r--src/stm32/Kconfig2
-rw-r--r--src/stm32/can.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/stm32/Kconfig b/src/stm32/Kconfig
index 386083f1..a4a0bf43 100644
--- a/src/stm32/Kconfig
+++ b/src/stm32/Kconfig
@@ -255,7 +255,7 @@ choice
config STM32_CANBUS_PB8_PB9
bool "CAN bus (on PB8/PB9)" if LOW_LEVEL_OPTIONS && HAVE_STM32_CANBUS
select CANSERIAL
- config STM32_CANBUS_PI8_PH13
+ config STM32_CANBUS_PI9_PH13
bool "CAN bus (on PI9/PH13)" if LOW_LEVEL_OPTIONS && MACH_STM32F4
select CANSERIAL
config STM32_CANBUS_PB5_PB6
diff --git a/src/stm32/can.c b/src/stm32/can.c
index af10f6ab..30b2886d 100644
--- a/src/stm32/can.c
+++ b/src/stm32/can.c
@@ -27,7 +27,7 @@
#define GPIO_Rx GPIO('B', 8)
#define GPIO_Tx GPIO('B', 9)
#endif
-#if CONFIG_STM32_CANBUS_PI8_PH13
+#if CONFIG_STM32_CANBUS_PI9_PH13
DECL_CONSTANT_STR("RESERVE_PINS_CAN", "PI9,PH13");
#define GPIO_Rx GPIO('I', 9)
#define GPIO_Tx GPIO('H', 13)