From a1ed6f3b785cfbe64de08ff68ccd8edb6568049b Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Fri, 12 Aug 2022 17:09:21 +0200 Subject: [PATCH] boards/common/blxxxpill: use UART_DEV(0) for stdio Using `UART_DEV(0)` (UASRT1) for stdio allows to use the same TTL adapter that is used for programming via `stm32flash` to be used for serial, without re-wiring after flashing. --- boards/common/blxxxpill/doc.txt | 5 +++-- boards/common/blxxxpill/include/board_common.h | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/boards/common/blxxxpill/doc.txt b/boards/common/blxxxpill/doc.txt index 0e3f9bae3b..7004a61bef 100644 --- a/boards/common/blxxxpill/doc.txt +++ b/boards/common/blxxxpill/doc.txt @@ -88,8 +88,9 @@ development version of OpenOCD. ## Connecting via Serial -The default UART port used is UART2, which uses pins A2 (TX) and A3 (RX). -To use it, configure your UART to operate at a baudrate of 115200/8N1. +The default UART port used is UART1, which uses pins A9 (TX) and A10 (RX). +To use it, configure your UART to operate at a symbol rate of 115200 baud, +1 stop bit and no parity (8N1). ## Using PWM diff --git a/boards/common/blxxxpill/include/board_common.h b/boards/common/blxxxpill/include/board_common.h index bff1a6d05c..9b68490a00 100644 --- a/boards/common/blxxxpill/include/board_common.h +++ b/boards/common/blxxxpill/include/board_common.h @@ -50,9 +50,9 @@ extern "C" { /** @} */ /** - * @brief Use the 2nd UART for STDIO on this board + * @brief Use the fist UART for STDIO on this board */ -#define STDIO_UART_DEV UART_DEV(1) +#define STDIO_UART_DEV UART_DEV(0) /** * @name xtimer configuration