cpu/sam0_common: uart: wait for synchronisation done after powerup
Otherwise we lose settings if we write to it right after uart_poweron()
This commit is contained in:
parent
1772628483
commit
1ef458a701
@ -314,6 +314,7 @@ void uart_poweron(uart_t uart)
|
||||
{
|
||||
sercom_clk_en(dev(uart));
|
||||
dev(uart)->CTRLA.reg |= SERCOM_USART_CTRLA_ENABLE;
|
||||
_syncbusy(dev(uart));
|
||||
}
|
||||
|
||||
void uart_poweroff(uart_t uart)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user