1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

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.
This commit is contained in:
Marian Buschsieweke 2022-08-12 17:09:21 +02:00
parent 50e4498c84
commit a1ed6f3b78
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94
2 changed files with 5 additions and 4 deletions

View File

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

View File

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