drivers: serial: uart_stm32: fix call to LL_USART_SetBaudRate
Some mcu's have USART_PRESC_PRESCALER defined in the function call. Add a prescaler of div1 to it. Signed-off-by: Pushpal Sidhu <psidhu.devel@gmail.com>
This commit is contained in:
parent
258c7ccff1
commit
8e459172e8
1 changed files with 3 additions and 0 deletions
|
@ -291,6 +291,9 @@ static int uart_stm32_init(struct device *dev)
|
|||
|
||||
LL_USART_SetBaudRate(UartInstance,
|
||||
clock_rate,
|
||||
#ifdef USART_PRESC_PRESCALER
|
||||
LL_USART_PRESCALER_DIV1,
|
||||
#endif
|
||||
#ifdef USART_CR1_OVER8
|
||||
LL_USART_OVERSAMPLING_16,
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue