projects
/
debian
/
gnuradio
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
switch source package format to 3.0 quilt
[debian/gnuradio]
/
usrp2
/
firmware
/
lib
/
hal_uart.c
diff --git
a/usrp2/firmware/lib/hal_uart.c
b/usrp2/firmware/lib/hal_uart.c
index f1d46fe8493fa8e68693733879ea3055669e7e35..75b12b43271f59df233962f9fc324ce1ec21d8ba 100644
(file)
--- 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;
}
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)
{
int
hal_uart_getc(void)
{