diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-11-24 06:40:50 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-11-24 06:40:50 +0000 |
commit | db8698d06935b8bc1b0c2f19af96111e4bafd845 (patch) | |
tree | 5661e032c18c507028a61675acbb80d28c9ff206 /c | |
parent | 2009-11-24 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-db8698d06935b8bc1b0c2f19af96111e4bafd845.tar.bz2 |
2009-11-24 Ralf Corsépius <ralf.corsepius@rtems.org>
* shared/console/console.c: Use int as return type of
BSP_uart_polled_read.
Diffstat (limited to 'c')
-rw-r--r-- | c/src/lib/libbsp/lm32/ChangeLog | 5 | ||||
-rw-r--r-- | c/src/lib/libbsp/lm32/shared/console/console.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/c/src/lib/libbsp/lm32/ChangeLog b/c/src/lib/libbsp/lm32/ChangeLog index 405d88c8c2..be97a2bed9 100644 --- a/c/src/lib/libbsp/lm32/ChangeLog +++ b/c/src/lib/libbsp/lm32/ChangeLog @@ -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> * shared/start/start.S: Export crt0 symbol because the debug.S uses diff --git a/c/src/lib/libbsp/lm32/shared/console/console.c b/c/src/lib/libbsp/lm32/shared/console/console.c index 63fa79de0d..5c6a697fd6 100644 --- a/c/src/lib/libbsp/lm32/shared/console/console.c +++ b/c/src/lib/libbsp/lm32/shared/console/console.c @@ -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 |