view lldbg/getchar.c @ 43:bceffa414fc6

cst_pei.c: added the same support for DISABLE_SLEEP as in Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 09 Sep 2017 16:16:57 +0000
parents 75a11d740a02
children
line wrap: on
line source

extern int lldbg_serial_in_poll();

int
lldbg_getchar()
{
	register int c;

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