stm32: Add support for USART6 on STM32F401
STM32F401 has USART6 on PA12/PA11 and PC7/PC6 with alternate function mapping AF08. This can be used, for example, to connect to the Elegoo Neptune 3, where PA12/PA11 are wired to an RJ10 plug going to the stock screen. Signed-off-by: Marius Petcu <marius@petcu.me>
This commit is contained in:
committed by
KevinOConnor
parent
75a10bfcaf
commit
3e7efe5ef1
@@ -434,6 +434,12 @@ choice
|
||||
bool "Serial (on USART5 PD2/PD3)" if LOW_LEVEL_OPTIONS
|
||||
depends on MACH_STM32G0Bx
|
||||
select SERIAL
|
||||
config STM32_SERIAL_USART6
|
||||
bool "Serial (on USART6 PA12/PA11)" if LOW_LEVEL_OPTIONS && MACH_STM32F401
|
||||
select SERIAL
|
||||
config STM32_SERIAL_USART6_ALT_PC7_PC6
|
||||
bool "Serial (on USART6 PC7/PC6)" if LOW_LEVEL_OPTIONS && MACH_STM32F401
|
||||
select SERIAL
|
||||
config STM32_CANBUS_PA11_PA12
|
||||
bool "CAN bus (on PA11/PA12)"
|
||||
depends on HAVE_STM32_CANBUS || HAVE_STM32_FDCANBUS
|
||||
|
||||
Reference in New Issue
Block a user