mirror of
https://github.com/andreili/katapult.git
synced 2025-08-23 19:34:06 +02:00
stm32 CAN: Added PH13/14 CAN pin option
Added the option to select PH13/PH14 as CAN pins. Signed-off-by: Christoph Frei <fryakatkop@gmail.com>
This commit is contained in:
parent
291c5da31a
commit
8c86fe02c1
@ -413,6 +413,10 @@ choice
|
|||||||
bool "CAN bus (on PC2/PC3)"
|
bool "CAN bus (on PC2/PC3)"
|
||||||
depends on HAVE_STM32_FDCANBUS
|
depends on HAVE_STM32_FDCANBUS
|
||||||
select CANSERIAL
|
select CANSERIAL
|
||||||
|
config STM32_MMENU_CANBUS_PH13_PH14
|
||||||
|
bool "CAN bus (on PH13/PH14)"
|
||||||
|
depends on HAVE_STM32_FDCANBUS
|
||||||
|
select CANSERIAL
|
||||||
config STM32_USBCANBUS_PA11_PA12
|
config STM32_USBCANBUS_PA11_PA12
|
||||||
bool "USB to CAN bus bridge (USB on PA11/PA12)"
|
bool "USB to CAN bus bridge (USB on PA11/PA12)"
|
||||||
depends on HAVE_STM32_USBCANBUS
|
depends on HAVE_STM32_USBCANBUS
|
||||||
@ -443,6 +447,9 @@ choice
|
|||||||
config STM32_CMENU_CANBUS_PC2_PC3
|
config STM32_CMENU_CANBUS_PC2_PC3
|
||||||
bool "CAN bus (on PC2/PC3)"
|
bool "CAN bus (on PC2/PC3)"
|
||||||
depends on HAVE_STM32_FDCANBUS
|
depends on HAVE_STM32_FDCANBUS
|
||||||
|
config STM32_CMENU_CANBUS_PH13_PH14
|
||||||
|
bool "CAN bus (on PH13/PH14)"
|
||||||
|
depends on HAVE_STM32_FDCANBUS
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
|
|
||||||
@ -470,7 +477,9 @@ config STM32_CANBUS_PD12_PD13
|
|||||||
config STM32_CANBUS_PC2_PC3
|
config STM32_CANBUS_PC2_PC3
|
||||||
bool
|
bool
|
||||||
default y if STM32_MMENU_CANBUS_PC2_PC3 || STM32_CMENU_CANBUS_PC2_PC3
|
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
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
# Flash settings
|
# Flash settings
|
||||||
|
@ -54,6 +54,10 @@
|
|||||||
DECL_CONSTANT_STR("RESERVE_PINS_CAN", "PB12,PB13");
|
DECL_CONSTANT_STR("RESERVE_PINS_CAN", "PB12,PB13");
|
||||||
#define GPIO_Rx GPIO('B', 12)
|
#define GPIO_Rx GPIO('B', 12)
|
||||||
#define GPIO_Tx GPIO('B', 13)
|
#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
|
#endif
|
||||||
|
|
||||||
#if !(CONFIG_STM32_CANBUS_PB0_PB1 || CONFIG_STM32_CANBUS_PC2_PC3 \
|
#if !(CONFIG_STM32_CANBUS_PB0_PB1 || CONFIG_STM32_CANBUS_PC2_PC3 \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user