From 8c99edc18e1358ac7eb6ce0c705f858f3132a48f Mon Sep 17 00:00:00 2001 From: Vincent Dupont Date: Tue, 20 Nov 2018 11:59:29 +0100 Subject: [PATCH] cpu/stm32_common: fix UART ISR_TXE usage --- cpu/stm32_common/periph/uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/stm32_common/periph/uart.c b/cpu/stm32_common/periph/uart.c index 38060a2e28..1358300517 100644 --- a/cpu/stm32_common/periph/uart.c +++ b/cpu/stm32_common/periph/uart.c @@ -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; }