diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-10-11 19:09:52 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-10-13 10:33:17 -0500 |
commit | 66402ef207a6e4a791525140d813ae5f0979e982 (patch) | |
tree | 2c78178bdc9aa3f1354813d0906933e716f45ee8 /c/src/lib/libbsp/m68k/mvme136/console | |
parent | m68k/uC5282/console/console.c: Eliminate unused debug methods (diff) | |
download | rtems-66402ef207a6e4a791525140d813ae5f0979e982.tar.bz2 |
m68k/mvme136: Fix warnings
Diffstat (limited to 'c/src/lib/libbsp/m68k/mvme136/console')
-rw-r--r-- | c/src/lib/libbsp/m68k/mvme136/console/console.c | 60 |
1 files changed, 6 insertions, 54 deletions
diff --git a/c/src/lib/libbsp/m68k/mvme136/console/console.c b/c/src/lib/libbsp/m68k/mvme136/console/console.c index 111fd7b893..ce8fa8de72 100644 --- a/c/src/lib/libbsp/m68k/mvme136/console/console.c +++ b/c/src/lib/libbsp/m68k/mvme136/console/console.c @@ -1,7 +1,9 @@ /* * This file contains the MVME136 console IO package. - * - * COPYRIGHT (c) 1989-1999. + */ + +/* + * COPYRIGHT (c) 1989-2014. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -15,19 +17,10 @@ volatile struct r_m681_info *_Read_m681; /* M68681 read registers */ volatile struct w_m681_info *_Write_m681; /* M68681 write registers */ - - /* console_initialize * * This routine initializes the console IO driver. - * - * Input parameters: NONE - * - * Output parameters: NONE - * - * Return values: */ - rtems_device_driver console_initialize( rtems_device_major_number major, rtems_device_minor_number minor, @@ -51,41 +44,11 @@ rtems_device_driver console_initialize( return RTEMS_SUCCESSFUL; } -/* is_character_ready - * - * This routine returns TRUE if a character is available. - * - * Input parameters: NONE - * - * Output parameters: NONE - * - * Return values: - */ - -bool is_character_ready( - char *ch -) -{ - if ( !(_Read_m681->srb & RXRDYB) ) - return false; - - *ch = _Read_m681->rbb; - return true; -} - /* inbyte * * This routine reads a character from the UART. - * - * Input parameters: NONE - * - * Output parameters: NONE - * - * Return values: - * character read from UART */ - -char inbyte( void ) +static char inbyte( void ) { while ( !(_Read_m681->srb & RXRDYB) ); return _Read_m681->rbb; @@ -95,14 +58,8 @@ char inbyte( void ) * * This routine transmits a character out the M68681. It supports * XON/XOFF flow control. - * - * Input parameters: - * ch - character to be transmitted - * - * Output parameters: NONE */ - -void outbyte( +static void outbyte( char ch ) { @@ -121,7 +78,6 @@ void outbyte( /* * Open entry point */ - rtems_device_driver console_open( rtems_device_major_number major, rtems_device_minor_number minor, @@ -134,7 +90,6 @@ rtems_device_driver console_open( /* * Close entry point */ - rtems_device_driver console_close( rtems_device_major_number major, rtems_device_minor_number minor, @@ -147,7 +102,6 @@ rtems_device_driver console_close( /* * read bytes from the serial port. We only have stdin. */ - rtems_device_driver console_read( rtems_device_major_number major, rtems_device_minor_number minor, @@ -179,7 +133,6 @@ rtems_device_driver console_read( /* * write bytes to the serial port. Stdout and stderr are the same. */ - rtems_device_driver console_write( rtems_device_major_number major, rtems_device_minor_number minor, @@ -210,7 +163,6 @@ rtems_device_driver console_write( /* * IO Control entry point */ - rtems_device_driver console_control( rtems_device_major_number major, rtems_device_minor_number minor, |