forked from Imagelibrary/rtems
2009-11-24 Ralf Corsépius <ralf.corsepius@rtems.org>
* shared/console/console.c: Use int as return type of BSP_uart_polled_read.
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
#include <rtems/libio.h>
|
||||
|
||||
void BSP_uart_polled_write(char ch);
|
||||
char BSP_uart_polled_read( void );
|
||||
int BSP_uart_polled_read( void );
|
||||
char BSP_uart_is_character_ready(char *ch);
|
||||
|
||||
/* console_initialize
|
||||
@@ -87,13 +87,13 @@ bool is_character_ready(
|
||||
* character read from SOURCE
|
||||
*/
|
||||
|
||||
char inbyte( void )
|
||||
int inbyte( void )
|
||||
{
|
||||
/*
|
||||
* If polling, wait until a character is available.
|
||||
*/
|
||||
|
||||
return (char) BSP_uart_polled_read();
|
||||
return BSP_uart_polled_read();
|
||||
}
|
||||
|
||||
/* outbyte
|
||||
|
||||
Reference in New Issue
Block a user