mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/stm32_common: fix UART ISR_TXE usage
This commit is contained in:
parent
08a85fbfdd
commit
8c99edc18e
@ -204,7 +204,7 @@ static inline void uart_init_lpuart(uart_t uart, uint32_t baudrate)
|
||||
|
||||
static inline void send_byte(uart_t uart, uint8_t byte)
|
||||
{
|
||||
while (!(dev(uart)->ISR_REG & USART_ISR_TXE)) {}
|
||||
while (!(dev(uart)->ISR_REG & ISR_TXE)) {}
|
||||
dev(uart)->TDR_REG = byte;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user