From: Sebastien Bourdeauducq Date: Sun, 19 Jul 2015 21:41:38 +0000 (+0200) Subject: uart: remove option to refill HW from uart_write X-Git-Tag: 24jan2021_ls180~2203 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=84514cf8d58e59d37365bc4bc4cb40120ba6d2dd;p=litex.git uart: remove option to refill HW from uart_write --- diff --git a/software/libbase/uart.c b/software/libbase/uart.c index 6b16ed8a..921459fc 100644 --- a/software/libbase/uart.c +++ b/software/libbase/uart.c @@ -82,12 +82,6 @@ void uart_write(char c) oldmask = irq_getmask(); irq_setmask(oldmask & ~(1 << UART_INTERRUPT)); -#if 0 - while((tx_consume != tx_produce) && !uart_txfull_read()) { - uart_rxtx_write(tx_buf[tx_consume]); - tx_consume = (tx_consume + 1) & UART_RINGBUFFER_MASK_TX; - } -#endif if((tx_consume != tx_produce) || uart_txfull_read()) { tx_buf[tx_produce] = c; tx_produce = tx_produce_next;