forked from Imagelibrary/rtems
2009-12-10 Ralf Corsépius <ralf.corsepius@rtems.org>
* console/console.c: Let bsp_in_char return int.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2009-12-10 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
|
* console/console.c: Let bsp_in_char return int.
|
||||||
|
|
||||||
2009-11-23 Joel Sherrill <joel.sherrill@OARcorp.com>
|
2009-11-23 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
* Makefile.am: sparc/shared/bspstart.c was really leon2 specific. So
|
* Makefile.am: sparc/shared/bspstart.c was really leon2 specific. So
|
||||||
|
|||||||
@@ -439,12 +439,12 @@ static void bsp_out_char (char c)
|
|||||||
|
|
||||||
BSP_output_char_function_type BSP_output_char = bsp_out_char;
|
BSP_output_char_function_type BSP_output_char = bsp_out_char;
|
||||||
|
|
||||||
static char bsp_in_char(void)
|
static int bsp_in_char(void)
|
||||||
{
|
{
|
||||||
int tmp;
|
int tmp;
|
||||||
|
|
||||||
while ((tmp = console_inbyte_nonblocking(0)) < 0);
|
while ((tmp = console_inbyte_nonblocking(0)) < 0);
|
||||||
return (char) tmp;
|
return tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
BSP_polling_getchar_function_type BSP_poll_char = bsp_in_char;
|
BSP_polling_getchar_function_type BSP_poll_char = bsp_in_char;
|
||||||
|
|||||||
Reference in New Issue
Block a user