Exemplo n.º 1
0
int tstc (void)
{
	if (gd->flags & GD_FLG_DEVINIT) {
		
		return ftstc (stdin);
	}

	return serial_tstc ();
}
Exemplo n.º 2
0
int tstc (void)
{
	if (gd->flags & GD_FLG_DEVINIT) {
		/* Test the standard input */
		return ftstc (stdin);
	}

	/* Send directly to the handler */
	return serial_tstc ();
}
Exemplo n.º 3
0
int tstc(void)
{
	if (!gd->have_console)
		return 0;

	if (gd->flags & GD_FLG_DEVINIT) {
		/* come here */
		/* Test the standard input */
		return ftstc(stdin);
	}

	/* Send directly to the handler */
	return serial_tstc();
}
Exemplo n.º 4
0
Arquivo: console.c Projeto: aosp/uboot
int tstc(void)
{
#ifdef CONFIG_DISABLE_CONSOLE
	if (gd->flags & GD_FLG_DISABLE_CONSOLE)
		return 0;
#endif

	if (gd->flags & GD_FLG_DEVINIT) {
		/* Test the standard input */
		return ftstc(stdin);
	}

	/* Send directly to the handler */
	return serial_tstc();
}