aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32/Kconfig
diff options
context:
space:
mode:
Diffstat (limited to 'src/stm32/Kconfig')
-rw-r--r--src/stm32/Kconfig8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/stm32/Kconfig b/src/stm32/Kconfig
index 2d9b3c1d..345d859e 100644
--- a/src/stm32/Kconfig
+++ b/src/stm32/Kconfig
@@ -157,7 +157,7 @@ choice
config STM32_SERIAL_USART2
bool "USART2 (on PA3/PA2)"
config STM32_SERIAL_USART2_ALT
- bool "USART2 (on PA15/PA14)"
+ bool "USART2 (on PA15/PA14)" if MACH_STM32F0
config STM32_SERIAL_USART3
bool "USART3"
config STM32_SERIAL_USART3_ALT
@@ -165,10 +165,8 @@ choice
endchoice
config SERIAL_PORT
int
- default 103 if STM32_SERIAL_USART3_ALT
- default 3 if STM32_SERIAL_USART3
- default 102 if STM32_SERIAL_USART2_ALT
- default 2 if STM32_SERIAL_USART2
+ default 3 if STM32_SERIAL_USART3 || STM32_SERIAL_USART3_ALT
+ default 2 if STM32_SERIAL_USART2 || STM32_SERIAL_USART2_ALT
default 1
endif