stm32: Fix USART3 on stm32f1 and stm32f2

Commit 6a3c357a incorrectly disabled support for USART3 on stm32f1 and
stm32f2 - restore that support.

Also, add support for USART3 on PD9/PD8 on stm32f103.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2021-05-25 22:13:09 -04:00
parent 20a6c6b225
commit 12acb99a38
2 changed files with 6 additions and 2 deletions

View File

@@ -247,11 +247,11 @@ choice
select SERIAL
config STM32_SERIAL_USART3
bool "Serial (on USART3 PB11/PB10)" if LOW_LEVEL_OPTIONS
depends on MACH_STM32F405 || MACH_STM32F407 || MACH_STM32F446
depends on !MACH_STM32F0 && !MACH_STM32F401
select SERIAL
config STM32_SERIAL_USART3_ALT_PD9_PD8
bool "Serial (on USART3 PD9/PD8)" if LOW_LEVEL_OPTIONS
depends on MACH_STM32F405 || MACH_STM32F407 || MACH_STM32F446
depends on !MACH_STM32F0 && !MACH_STM32F401
select SERIAL
config STM32_CANBUS_PA11_PA12
bool "CAN bus (on PA11/PA12)" if HAVE_STM32_CANBUS