1
0
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:
Vincent Dupont 2018-11-20 11:59:29 +01:00
parent 08a85fbfdd
commit 8c99edc18e

View File

@ -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;
}