Add baudrate change function to uart driver
This commit is contained in:
@@ -86,6 +86,14 @@ int uart_init(struct stm_uart *uart)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void uart_change_brr(struct stm_uart *uart, uint32_t brr)
|
||||
{
|
||||
if (!uart || !uart->uart_dev)
|
||||
return;
|
||||
|
||||
uart->uart_dev->BRR = brr;
|
||||
}
|
||||
|
||||
void uart_disable(struct stm_uart *uart)
|
||||
{
|
||||
if (!uart)
|
||||
|
Reference in New Issue
Block a user