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:
Benjamin Valentin 2021-11-11 14:32:42 +01:00
parent 1772628483
commit 1ef458a701

View File

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