stm32: STM32F0 CAN feature

Signed-off-by: Eug Krashtan <eug.krashtan@gmail.com>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Eug Krashtan
2019-12-28 13:32:43 +02:00
committed by Kevin O'Connor
parent 5238c3f872
commit a34dbc7029
4 changed files with 290 additions and 0 deletions

View File

@@ -135,9 +135,13 @@ config CANSERIAL
bool "Use CAN for communication (instead of serial)"
depends on MACH_STM32F042 && !USBSERIAL
default n
config SERIAL_BAUD
int "CAN bus speed" if LOW_LEVEL_OPTIONS && CANSERIAL
default 500000 if CANSERIAL
config STM32F042_PIN_SWAP
bool "Use PA9/PA10 for USB or CAN" if MACH_STM32F042
depends on (USBSERIAL || CANSERIAL) && MACH_STM32F042
default y if (USBSERIAL || CANSERIAL)
default n
config SERIAL
depends on !USBSERIAL && !CANSERIAL