reflect bitrate change of uart in uart struct

This commit is contained in:
Mario Hüttel 2020-02-24 22:15:36 +01:00
parent c923fb3e12
commit 71e2073a76

View File

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