diff options
-rw-r--r-- | os/hal/ports/STM32/LLD/USARTv1/hal_uart_lld.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/ports/STM32/LLD/USARTv1/hal_uart_lld.c b/os/hal/ports/STM32/LLD/USARTv1/hal_uart_lld.c index db7ab9250..f4370d28d 100644 --- a/os/hal/ports/STM32/LLD/USARTv1/hal_uart_lld.c +++ b/os/hal/ports/STM32/LLD/USARTv1/hal_uart_lld.c @@ -217,7 +217,7 @@ static void usart_start(UARTDriver *uartp) { Fraction is still 4 bits wide, but only lower 3 bits used.
Mantissa is doubled, but Fraction is left the same.*/
#if defined(USART_CR1_OVER8)
- if (config->cr1 & USART_CR1_OVER8)
+ if (uartp->config->cr1 & USART_CR1_OVER8)
fck = ((fck & ~7) * 2) | (fck & 7);
#endif
u->BRR = fck;
|