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:
@@ -1,3 +1,8 @@
|
|||||||
|
2009-11-24 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
|
* shared/console/console.c: Use int as return type of
|
||||||
|
BSP_uart_polled_read.
|
||||||
|
|
||||||
2009-05-27 Michael Walle <michael@walle.cc>
|
2009-05-27 Michael Walle <michael@walle.cc>
|
||||||
|
|
||||||
* shared/start/start.S: Export crt0 symbol because the debug.S uses
|
* shared/start/start.S: Export crt0 symbol because the debug.S uses
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
#include <rtems/libio.h>
|
#include <rtems/libio.h>
|
||||||
|
|
||||||
void BSP_uart_polled_write(char ch);
|
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);
|
char BSP_uart_is_character_ready(char *ch);
|
||||||
|
|
||||||
/* console_initialize
|
/* console_initialize
|
||||||
@@ -87,13 +87,13 @@ bool is_character_ready(
|
|||||||
* character read from SOURCE
|
* character read from SOURCE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
char inbyte( void )
|
int inbyte( void )
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* If polling, wait until a character is available.
|
* If polling, wait until a character is available.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
return (char) BSP_uart_polled_read();
|
return BSP_uart_polled_read();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* outbyte
|
/* outbyte
|
||||||
|
|||||||
Reference in New Issue
Block a user