2010-07-27 Gedare Bloom <giddyup44@yahoo.com>

PR 1634/bsps
	* shared/console/conscfg.c: Add BSP_poll_char.
This commit is contained in:
Joel Sherrill
2010-07-27 15:55:07 +00:00
parent 8a51913f84
commit 019fd4b680
2 changed files with 16 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
2010-07-27 Gedare Bloom <giddyup44@yahoo.com>
PR 1634/bsps
* shared/console/conscfg.c: Add BSP_poll_char.
2010-06-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* .cvsignore: New file.

View File

@@ -113,3 +113,14 @@ static void bsp_out_char (char c)
BSP_output_char_function_type BSP_output_char = bsp_out_char;
static int bsp_in_char( void ){
int tmp;
ofw_read( &tmp, 1 ); /* blocks */
if( tmp != 0 ) {
return tmp>>24;
}
return -1;
}
BSP_polling_getchar_function_type BSP_poll_char = bsp_in_char;