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 committed 2010-07-27 15:55:07 +00:00
1 parent 8a51913f84
commit 019fd4b680
2 files changed
+16

No files matched your search

+5
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.
@@ -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;