diff options
Diffstat (limited to 'src/stm32/Kconfig')
-rw-r--r-- | src/stm32/Kconfig | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/stm32/Kconfig b/src/stm32/Kconfig index bd613ad1..09652673 100644 --- a/src/stm32/Kconfig +++ b/src/stm32/Kconfig @@ -101,6 +101,9 @@ config HAVE_STM32_USBOTG config HAVE_STM32_CANBUS bool default y if MACH_STM32F1 || MACH_STM32F2 || MACH_STM32F4x5 || MACH_STM32F446 || MACH_STM32F0x2 +config HAVE_STM32_FDCANBUS + bool + default y if MACH_STM32G0 config MCU string @@ -275,6 +278,8 @@ config SERIAL bool config CANSERIAL bool +config FDCANSERIAL + bool choice prompt "Communication interface" config STM32_USB_PA11_PA12 @@ -342,10 +347,14 @@ choice bool "CAN bus (on PD0/PD1)" if LOW_LEVEL_OPTIONS depends on HAVE_STM32_CANBUS select CANSERIAL + config STM32_CANBUS_PB0_PB1 + bool "CAN bus (on PB0/PB1)" if LOW_LEVEL_OPTIONS + depends on HAVE_STM32_FDCANBUS + select FDCANSERIAL endchoice config CANBUS_FREQUENCY - int "CAN bus speed" if LOW_LEVEL_OPTIONS && CANSERIAL + int "CAN bus speed" if LOW_LEVEL_OPTIONS && (CANSERIAL || FDCANSERIAL) default 500000 endif |