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:
Karl Palsson
2018-10-07 13:43:21 +00:00
parent d434a00323
commit b7aac4bc76
2 changed files with 2 additions and 2 deletions

View File

@@ -9,4 +9,4 @@ The sending is done in a blocking way.
| Port | Function | Description |
| ----- | ------------- | --------------------------------- |
| `PA2` | `(USART2_TX)` | TTL serial output `(38400,8,N,1)` |
| `PA2` | `(USART2_TX)` | TTL serial output `(115200,8,N,1)` |

View File

@@ -35,7 +35,7 @@ static void clock_setup(void)
static void usart_setup(void)
{
/* Setup USART2 parameters. */
usart_set_baudrate(USART2, 38400);
usart_set_baudrate(USART2, 115200);
usart_set_databits(USART2, 8);
usart_set_stopbits(USART2, USART_STOPBITS_1);
usart_set_mode(USART2, USART_MODE_TX);