mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #7638 from smlng/cpu/sam0_common/fix_uart
cpu, sam0_common: fix uart TXC check
This commit is contained in:
commit
55b2d484f7
@ -121,8 +121,8 @@ void uart_write(uart_t uart, const uint8_t *data, size_t len)
|
||||
for (size_t i = 0; i < len; i++) {
|
||||
while (!(dev(uart)->INTFLAG.reg & SERCOM_USART_INTFLAG_DRE)) {}
|
||||
dev(uart)->DATA.reg = data[i];
|
||||
while (dev(uart)->INTFLAG.reg & SERCOM_USART_INTFLAG_TXC) {}
|
||||
}
|
||||
while (!(dev(uart)->INTFLAG.reg & SERCOM_USART_INTFLAG_TXC)) {}
|
||||
}
|
||||
|
||||
void uart_poweron(uart_t uart)
|
||||
|
Loading…
Reference in New Issue
Block a user