forked from Imagelibrary/rtems
2000-04-23 Jiri Gaisler <jiri@gaisler.com>
* console/debugputs.c: Switched to unsigned characters.
This commit is contained in:
@@ -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>
|
||||
|
||||
* gnatsupp/gnatsupp.c: Added prototype to eliminate warning.
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -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>
|
||||
|
||||
* console/console.c: Removed console_reserve_resources().
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user