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:
Marius Petcu
2025-02-22 00:24:23 +02:00
committed by KevinOConnor
parent 75a10bfcaf
commit 3e7efe5ef1
2 changed files with 28 additions and 2 deletions

View File

@@ -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