projects
/
litex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a501d7c
)
uart: remove option to refill HW from uart_write
author
Sebastien Bourdeauducq
<sb@m-labs.hk>
Sun, 19 Jul 2015 21:41:38 +0000
(23:41 +0200)
committer
Sebastien Bourdeauducq
<sb@m-labs.hk>
Sun, 19 Jul 2015 21:41:38 +0000
(23:41 +0200)
software/libbase/uart.c
patch
|
blob
|
history
diff --git
a/software/libbase/uart.c
b/software/libbase/uart.c
index 6b16ed8a3fd95ac6e93bd4e3d664a70ccb8c2fb5..921459fc986c71e0d50a7cd0afbdb7224a9cf115 100644
(file)
--- 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;