stm32: Support PB7/PB6 for USART1 on stm32f0
Add support for USART1 on PB7/PB6. Remove STM32_SERIAL_USART1_ALT_PA15_PA14 option and allow all serial mappings to be used on stm32f031. Reported by @Desuuuu. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -237,11 +237,8 @@ choice
|
||||
config STM32_SERIAL_USART1
|
||||
bool "Serial (on USART1 PA10/PA9)"
|
||||
select SERIAL
|
||||
config STM32_SERIAL_USART1_ALT_PA15_PA14
|
||||
bool "Serial (on USART1 PA15/PA14)" if LOW_LEVEL_OPTIONS && MACH_STM32F0
|
||||
select SERIAL
|
||||
config STM32_SERIAL_USART1_ALT_PB7_PB6
|
||||
bool "Serial (on USART1 PB7/PB6)" if LOW_LEVEL_OPTIONS && !MACH_STM32F0
|
||||
bool "Serial (on USART1 PB7/PB6)" if LOW_LEVEL_OPTIONS
|
||||
select SERIAL
|
||||
config STM32_SERIAL_USART2
|
||||
bool "Serial (on USART2 PA3/PA2)" if LOW_LEVEL_OPTIONS
|
||||
|
||||
Reference in New Issue
Block a user