Changeset 87d3d02 in rtems


Ignore:
Timestamp:
Oct 23, 1997, 6:49:02 PM (23 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
51eb8d5
Parents:
cfefaa6
Message:

Switched to new style for read support routine.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/erc32/console/console.c

    rcfefaa6 r87d3d02  
    6464 */
    6565
    66 int console_inbyte_nonblocking(
    67   int port,
    68   char *c
    69 )
     66int console_inbyte_nonblocking( int port )
    7067{
    7168  int UStat;
     
    8279
    8380      if ((UStat & ERC32_MEC_UART_STATUS_DRA) == 0)
    84          return 0;
    85       *c = (char) ERC32_MEC.UART_Channel_A;
     81         return -1;
     82      return (int) ERC32_MEC.UART_Channel_A;
    8683      return 1;
    8784
     
    9390
    9491      if ((UStat & ERC32_MEC_UART_STATUS_DRB) == 0)
    95         return 0;
    96       *c = (char) ERC32_MEC.UART_Channel_B;
    97       return 1;
     92        return -1;
     93      return (int) ERC32_MEC.UART_Channel_B;
    9894
    9995    default:
     
    10197  }
    10298
    103   return 0;
     99  return -1;
    104100}
    105101
Note: See TracChangeset for help on using the changeset viewer.