From 6de4727fd21f29daa8cdccaf031c3d4127abff39 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 23 Apr 2001 13:19:35 +0000 Subject: 2000-04-23 Jiri Gaisler * console/debugputs.c: Switched to unsigned characters. --- c/src/lib/libbsp/sparc/erc32/ChangeLog | 4 ++++ c/src/lib/libbsp/sparc/erc32/console/debugputs.c | 6 +++--- c/src/lib/libbsp/sparc/leon/ChangeLog | 4 ++++ c/src/lib/libbsp/sparc/leon/console/debugputs.c | 6 +++--- 4 files changed, 14 insertions(+), 6 deletions(-) (limited to 'c/src/lib/libbsp') diff --git a/c/src/lib/libbsp/sparc/erc32/ChangeLog b/c/src/lib/libbsp/sparc/erc32/ChangeLog index 3c2d5a8a32..dd15cdbff0 100644 --- a/c/src/lib/libbsp/sparc/erc32/ChangeLog +++ b/c/src/lib/libbsp/sparc/erc32/ChangeLog @@ -1,3 +1,7 @@ +2000-04-23 Jiri Gaisler + + * console/debugputs.c: Switched to unsigned characters. + 2000-12-06 Joel Sherrill * gnatsupp/gnatsupp.c: Added prototype to eliminate warning. diff --git a/c/src/lib/libbsp/sparc/erc32/console/debugputs.c b/c/src/lib/libbsp/sparc/erc32/console/debugputs.c index 54778dc237..69a1a13ccd 100644 --- a/c/src/lib/libbsp/sparc/erc32/console/debugputs.c +++ b/c/src/lib/libbsp/sparc/erc32/console/debugputs.c @@ -26,17 +26,17 @@ void console_outbyte_polled( int port, - char ch + unsigned char ch ) { if ( port == 0 ) { while ( (ERC32_MEC.UART_Status & ERC32_MEC_UART_STATUS_THEA) == 0 ); - ERC32_MEC.UART_Channel_A = (int) ch; + ERC32_MEC.UART_Channel_A = (unsigned int) ch; return; } while ( (ERC32_MEC.UART_Status & ERC32_MEC_UART_STATUS_THEB) == 0 ); - ERC32_MEC.UART_Channel_B = (int) ch; + ERC32_MEC.UART_Channel_B = (unsigned int) ch; } /* diff --git a/c/src/lib/libbsp/sparc/leon/ChangeLog b/c/src/lib/libbsp/sparc/leon/ChangeLog index ad103140de..97a4274a09 100644 --- a/c/src/lib/libbsp/sparc/leon/ChangeLog +++ b/c/src/lib/libbsp/sparc/leon/ChangeLog @@ -1,3 +1,7 @@ +2000-04-23 Jiri Gaisler + + * console/debugputs.c: Switched to unsigned characters. + 2000-12-06 Joel Sherrill * console/console.c: Removed console_reserve_resources(). diff --git a/c/src/lib/libbsp/sparc/leon/console/debugputs.c b/c/src/lib/libbsp/sparc/leon/console/debugputs.c index 71b5c8debf..c6c7ac86f1 100644 --- a/c/src/lib/libbsp/sparc/leon/console/debugputs.c +++ b/c/src/lib/libbsp/sparc/leon/console/debugputs.c @@ -26,17 +26,17 @@ void console_outbyte_polled( int port, - char ch + unsigned char ch ) { if ( port == 0 ) { while ( (LEON_REG.UART_Status_1 & LEON_REG_UART_STATUS_THE) == 0 ); - LEON_REG.UART_Channel_1 = (int) ch; + LEON_REG.UART_Channel_1 = (unsigned int) ch; return; } while ( (LEON_REG.UART_Status_2 & LEON_REG_UART_STATUS_THE) == 0 ); - LEON_REG.UART_Channel_2 = (int) ch; + LEON_REG.UART_Channel_2 = (unsigned int) ch; } /* -- cgit v1.2.3