diff options
Diffstat (limited to 'os/hal')
-rw-r--r-- | os/hal/platforms/STM32/USARTv1/uart_lld.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/platforms/STM32/USARTv1/uart_lld.c b/os/hal/platforms/STM32/USARTv1/uart_lld.c index 01c5627ac..1e71ea016 100644 --- a/os/hal/platforms/STM32/USARTv1/uart_lld.c +++ b/os/hal/platforms/STM32/USARTv1/uart_lld.c @@ -175,7 +175,7 @@ static void usart_start(UARTDriver *uartp) { usart_stop(uartp);
/* Baud rate setting.*/
- if (uartp->usart == USART1)
+ if ((uartp->usart == USART1) || (uartp->usart == USART6))
u->BRR = STM32_PCLK2 / uartp->config->speed;
else
u->BRR = STM32_PCLK1 / uartp->config->speed;
|