diff options
Diffstat (limited to 'src/stm32/Kconfig')
-rw-r--r-- | src/stm32/Kconfig | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/stm32/Kconfig b/src/stm32/Kconfig index 1e79811c..6bfc15e2 100644 --- a/src/stm32/Kconfig +++ b/src/stm32/Kconfig @@ -131,12 +131,16 @@ config USBSERIAL bool "Use USB for communication (instead of serial)" depends on HAVE_STM32_USBFS || HAVE_STM32_USBOTG default y -config STM32F042_USB_PIN_SWAP - bool "Use PA9/PA10 for USB" if MACH_STM32F042 - depends on USBSERIAL && MACH_STM32F042 +config CANSERIAL + bool "Use CAN for communication (instead of serial)" + depends on MACH_STM32F042 && !USBSERIAL + default n +config STM32F042_PIN_SWAP + bool "Use PA9/PA10 for USB or CAN" if MACH_STM32F042 + depends on (USBSERIAL || CANSERIAL) && MACH_STM32F042 default n config SERIAL - depends on !USBSERIAL + depends on !USBSERIAL && !CANSERIAL bool default y choice |