comparison loadagent/serwait.c @ 1:da98dc08f575

loadagent: beginning to lay the foundation
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 29 Apr 2013 03:21:00 +0000
parents
children
comparison
equal deleted inserted replaced
0:9beb566ded04 1:da98dc08f575
1 /* this C module is a wrapper around serio.S */
2 /* we implement serial_in_wait() as a C wrapper around serial_in_poll() */
3
4 extern int serial_in_poll();
5
6 int serial_in_wait()
7 {
8 register int c;
9
10 do
11 c = serial_in_poll();
12 while (c < 0);
13 return c;
14 }