From db8698d06935b8bc1b0c2f19af96111e4bafd845 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Tue, 24 Nov 2009 06:40:50 +0000 Subject: =?UTF-8?q?2009-11-24=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * shared/console/console.c: Use int as return type of BSP_uart_polled_read. --- c/src/lib/libbsp/lm32/ChangeLog | 5 +++++ c/src/lib/libbsp/lm32/shared/console/console.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'c') 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 + + * shared/console/console.c: Use int as return type of + BSP_uart_polled_read. + 2009-05-27 Michael Walle * 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 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 -- cgit v1.2.3