reflect bitrate change of uart in uart struct
This commit is contained in:
parent
c923fb3e12
commit
71e2073a76
@ -91,6 +91,7 @@ void uart_change_brr(struct stm_uart *uart, uint32_t brr)
|
|||||||
if (!uart || !uart->uart_dev)
|
if (!uart || !uart->uart_dev)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
uart->brr_val = brr;
|
||||||
uart->uart_dev->BRR = brr;
|
uart->uart_dev->BRR = brr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user