Switched to new style for read support routine.

This commit is contained in:
Joel Sherrill
1997-10-23 18:49:02 +00:00
parent cfefaa6e9e
commit 87d3d02640

View File

@@ -63,10 +63,7 @@ void console_outbyte_polled(
* This routine polls for a character. * This routine polls for a character.
*/ */
int console_inbyte_nonblocking( int console_inbyte_nonblocking( int port )
int port,
char *c
)
{ {
int UStat; int UStat;
@@ -81,8 +78,8 @@ int console_inbyte_nonblocking(
} }
if ((UStat & ERC32_MEC_UART_STATUS_DRA) == 0) if ((UStat & ERC32_MEC_UART_STATUS_DRA) == 0)
return 0; return -1;
*c = (char) ERC32_MEC.UART_Channel_A; return (int) ERC32_MEC.UART_Channel_A;
return 1; return 1;
case 1: case 1:
@@ -92,15 +89,14 @@ int console_inbyte_nonblocking(
} }
if ((UStat & ERC32_MEC_UART_STATUS_DRB) == 0) if ((UStat & ERC32_MEC_UART_STATUS_DRB) == 0)
return 0; return -1;
*c = (char) ERC32_MEC.UART_Channel_B; return (int) ERC32_MEC.UART_Channel_B;
return 1;
default: default:
assert( 0 ); assert( 0 );
} }
return 0; return -1;
} }
/* /*