Skip to content

Commit b7aac4b

Browse files
committed
stm32f4/usart: use 115200 baud rate
38400 is uncommon and slow. Just live in the modern world of at least 115200.
1 parent d434a00 commit b7aac4b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

examples/stm32/f4/stm32f4-discovery/usart/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ The sending is done in a blocking way.
99

1010
| Port | Function | Description |
1111
| ----- | ------------- | --------------------------------- |
12-
| `PA2` | `(USART2_TX)` | TTL serial output `(38400,8,N,1)` |
12+
| `PA2` | `(USART2_TX)` | TTL serial output `(115200,8,N,1)` |

examples/stm32/f4/stm32f4-discovery/usart/usart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ static void clock_setup(void)
3535
static void usart_setup(void)
3636
{
3737
/* Setup USART2 parameters. */
38-
usart_set_baudrate(USART2, 38400);
38+
usart_set_baudrate(USART2, 115200);
3939
usart_set_databits(USART2, 8);
4040
usart_set_stopbits(USART2, USART_STOPBITS_1);
4141
usart_set_mode(USART2, USART_MODE_TX);

0 commit comments

Comments
 (0)