sparc/erc32: Fix warnings

This commit is contained in:
Joel Sherrill
2014-10-17 08:52:07 -05:00
parent 56fb691566
commit 4c75e72844
4 changed files with 21 additions and 14 deletions

View File

@@ -1,8 +1,4 @@
/*
* This file contains the TTY driver for the serial ports on the erc32.
*
* This driver uses the termios pseudo driver.
*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
@@ -20,7 +16,6 @@
*
* This routine transmits a character using polling.
*/
void console_outbyte_polled(
int port,
unsigned char ch
@@ -41,7 +36,6 @@ void console_outbyte_polled(
*
* This routine polls for a character.
*/
int console_inbyte_nonblocking( int port )
{
int UStat;
@@ -83,7 +77,7 @@ int console_inbyte_nonblocking( int port )
#include <rtems/bspIo.h>
void BSP_output_char_f(char c) { console_outbyte_polled( 0, c ); }
static void BSP_output_char_f(char c) { console_outbyte_polled( 0, c ); }
BSP_output_char_function_type BSP_output_char = BSP_output_char_f;
BSP_polling_getchar_function_type BSP_poll_char = NULL;

View File

@@ -6,10 +6,7 @@
* @brief Global BSP Definitions.
*/
/* bsp.h
*
* This include file contains all SPARC simulator definitions.
*
/*
* COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
@@ -176,6 +173,17 @@ extern void BSP_shared_interrupt_unmask(int irq);
*/
extern void BSP_shared_interrupt_mask(int irq);
/*
* Delay for the specified number of microseconds.
*/
void rtems_bsp_delay(int usecs);
/*
* Prototypes for methods used across file boundaries
*/
void console_outbyte_polled(int port, unsigned char ch);
int console_inbyte_nonblocking(int port);
#ifdef __cplusplus
}
#endif

View File

@@ -1,7 +1,9 @@
/*
* ERC32 BSP Delay Method
*
* COPYRIGHT (c) 1989-2011.
*/
/*
* COPYRIGHT (c) 1989-2014.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be

View File

@@ -1,5 +1,7 @@
/* Installs the BSP pre-driver hook
*
*/
/*
* COPYRIGHT (c) 2011
* Aeroflex Gaisler
*
@@ -9,6 +11,7 @@
*/
#include <bsp.h>
#include <bsp/bootcard.h>
/*
* bsp_predriver_hook