view loadagent/serwait.c @ 10:e2e80a09338e

fc-sertool actually works; output from loadagent is visible!
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Wed, 01 May 2013 03:41:42 +0000
parents da98dc08f575
children
line wrap: on
line source

/* this C module is a wrapper around serio.S */
/* we implement serial_in_wait() as a C wrapper around serial_in_poll() */

extern int serial_in_poll();

int serial_in_wait()
{
	register int c;

	do
		c = serial_in_poll();
	while (c < 0);
	return c;
}