2000-04-23 Jiri Gaisler <jiri@gaisler.com>

* console/debugputs.c: Switched to unsigned characters.
This commit is contained in:
Joel Sherrill
2001-04-23 13:19:35 +00:00
parent d8a9155512
commit 6de4727fd2
4 changed files with 14 additions and 6 deletions

View File

@@ -1,3 +1,7 @@
2000-04-23 Jiri Gaisler <jiri@gaisler.com>
* console/debugputs.c: Switched to unsigned characters.
2000-12-06 Joel Sherrill <joel@OARcorp.com> 2000-12-06 Joel Sherrill <joel@OARcorp.com>
* gnatsupp/gnatsupp.c: Added prototype to eliminate warning. * gnatsupp/gnatsupp.c: Added prototype to eliminate warning.

View File

@@ -26,17 +26,17 @@
void console_outbyte_polled( void console_outbyte_polled(
int port, int port,
char ch unsigned char ch
) )
{ {
if ( port == 0 ) { if ( port == 0 ) {
while ( (ERC32_MEC.UART_Status & ERC32_MEC_UART_STATUS_THEA) == 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; return;
} }
while ( (ERC32_MEC.UART_Status & ERC32_MEC_UART_STATUS_THEB) == 0 ); 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;
} }
/* /*

View File

@@ -1,3 +1,7 @@
2000-04-23 Jiri Gaisler <jiri@gaisler.com>
* console/debugputs.c: Switched to unsigned characters.
2000-12-06 Joel Sherrill <joel@OARcorp.com> 2000-12-06 Joel Sherrill <joel@OARcorp.com>
* console/console.c: Removed console_reserve_resources(). * console/console.c: Removed console_reserve_resources().

View File

@@ -26,17 +26,17 @@
void console_outbyte_polled( void console_outbyte_polled(
int port, int port,
char ch unsigned char ch
) )
{ {
if ( port == 0 ) { if ( port == 0 ) {
while ( (LEON_REG.UART_Status_1 & LEON_REG_UART_STATUS_THE) == 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; return;
} }
while ( (LEON_REG.UART_Status_2 & LEON_REG_UART_STATUS_THE) == 0 ); 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;
} }
/* /*