From 1dcd1f7b102254f4abfbd99b2ae02f19c5094bf8 Mon Sep 17 00:00:00 2001 From: Alastair D'Silva Date: Tue, 19 Apr 2016 18:21:11 +1000 Subject: [PATCH] Add a clarifying comment about the setup of TX empty --- serial/uart.c | 1 + 1 file changed, 1 insertion(+) diff --git a/serial/uart.c b/serial/uart.c index 982b456..3141ce6 100644 --- a/serial/uart.c +++ b/serial/uart.c @@ -131,6 +131,7 @@ uart_config(uint8 uart_no) uint32_t tx_empty_bits = 0; if (uart0_tx_enable_pin >= 0) { + // Set the empty threshold to 0 and enable the buffer empty interrupt tx_empty_bits = (0 & UART_TXFIFO_EMPTY_THRHD) << UART_TXFIFO_EMPTY_THRHD_S | UART_TXFIFO_EMPTY_INT_ENA; } WRITE_PERI_REG(UART_CONF1(uart_no),