diff gsm-fw/lldbg/getchar.c @ 865:f5affe83ba2d

lldbg hack (poor girl's substitute for JTAG) implemented
author Space Falcon <falcon@ivan.Harhan.ORG>
date Fri, 15 May 2015 00:02:03 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gsm-fw/lldbg/getchar.c	Fri May 15 00:02:03 2015 +0000
@@ -0,0 +1,12 @@
+extern int lldbg_serial_in_poll();
+
+int
+lldbg_getchar()
+{
+	register int c;
+
+	do
+		c = lldbg_serial_in_poll();
+	while (c < 0);
+	return c;
+}