diff options
Diffstat (limited to 'usrp2/firmware/lib/hal_uart.c')
-rw-r--r-- | usrp2/firmware/lib/hal_uart.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/usrp2/firmware/lib/hal_uart.c b/usrp2/firmware/lib/hal_uart.c index f1d46fe84..75b12b432 100644 --- a/usrp2/firmware/lib/hal_uart.c +++ b/usrp2/firmware/lib/hal_uart.c @@ -57,6 +57,16 @@ hal_uart_putc(int ch) u->txchar = ch; } +void +hal_uart_putc_nowait(int ch) +{ + if (ch == '\n') // FIXME for now map \n -> \r\n + hal_uart_putc('\r'); + + if(u->txlevel) // If fifo has space + u->txchar = ch; +} + int hal_uart_getc(void) { |