stm32f4/usart: use 115200 baud rate
38400 is uncommon and slow. Just live in the modern world of at least 115200.
This commit is contained in:
@@ -9,4 +9,4 @@ The sending is done in a blocking way.
|
|||||||
|
|
||||||
| Port | Function | Description |
|
| Port | Function | Description |
|
||||||
| ----- | ------------- | --------------------------------- |
|
| ----- | ------------- | --------------------------------- |
|
||||||
| `PA2` | `(USART2_TX)` | TTL serial output `(38400,8,N,1)` |
|
| `PA2` | `(USART2_TX)` | TTL serial output `(115200,8,N,1)` |
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ static void clock_setup(void)
|
|||||||
static void usart_setup(void)
|
static void usart_setup(void)
|
||||||
{
|
{
|
||||||
/* Setup USART2 parameters. */
|
/* Setup USART2 parameters. */
|
||||||
usart_set_baudrate(USART2, 38400);
|
usart_set_baudrate(USART2, 115200);
|
||||||
usart_set_databits(USART2, 8);
|
usart_set_databits(USART2, 8);
|
||||||
usart_set_stopbits(USART2, USART_STOPBITS_1);
|
usart_set_stopbits(USART2, USART_STOPBITS_1);
|
||||||
usart_set_mode(USART2, USART_MODE_TX);
|
usart_set_mode(USART2, USART_MODE_TX);
|
||||||
|
|||||||
Reference in New Issue
Block a user