Updated all examples to use the new/old usart_set_baudrate api.
This commit is contained in:
@@ -43,7 +43,7 @@ void usart_setup(void)
|
||||
GPIO_CNF_OUTPUT_ALTFN_PUSHPULL, GPIO_USART1_TX);
|
||||
|
||||
/* Setup UART parameters. */
|
||||
usart_set_baudrate(USART1, 38400, rcc_ppre2_frequency);
|
||||
usart_set_baudrate(USART1, 38400);
|
||||
usart_set_databits(USART1, 8);
|
||||
usart_set_stopbits(USART1, USART_STOPBITS_1);
|
||||
usart_set_mode(USART1, USART_MODE_TX);
|
||||
|
||||
Reference in New Issue
Block a user