mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-16 10:03:50 +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:
parent
50e4498c84
commit
a1ed6f3b78
@ -88,8 +88,9 @@ development version of OpenOCD.
|
|||||||
|
|
||||||
## Connecting via Serial
|
## Connecting via Serial
|
||||||
|
|
||||||
The default UART port used is UART2, which uses pins A2 (TX) and A3 (RX).
|
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 baudrate of 115200/8N1.
|
To use it, configure your UART to operate at a symbol rate of 115200 baud,
|
||||||
|
1 stop bit and no parity (8N1).
|
||||||
|
|
||||||
## Using PWM
|
## Using PWM
|
||||||
|
|
||||||
|
|||||||
@ -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
|
* @name xtimer configuration
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user