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:
Pushpal Sidhu 2017-12-13 09:23:57 -08:00 committed by Kumar Gala
commit 8e459172e8

View file

@ -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