forked from Imagelibrary/rtems
m68k/idp: Fix warnings
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
/*
|
/*
|
||||||
* This file contains the Motorola IDP console IO package.
|
* This file contains the Motorola IDP console IO package.
|
||||||
*
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
* Written by Doug McBride, Colorado Space Grant College
|
* Written by Doug McBride, Colorado Space Grant College
|
||||||
* Based off of the board support packages of RTEMS
|
* Based off of the board support packages of RTEMS
|
||||||
*
|
*
|
||||||
@@ -21,14 +23,7 @@ rtems_isr C_Receive_ISR(rtems_vector_number vector);
|
|||||||
/* console_initialize
|
/* console_initialize
|
||||||
*
|
*
|
||||||
* This routine initializes the console IO driver.
|
* This routine initializes the console IO driver.
|
||||||
*
|
|
||||||
* Input parameters: NONE
|
|
||||||
*
|
|
||||||
* Output parameters: NONE
|
|
||||||
*
|
|
||||||
* Return values:
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
rtems_device_driver console_initialize(
|
rtems_device_driver console_initialize(
|
||||||
rtems_device_major_number major,
|
rtems_device_major_number major,
|
||||||
rtems_device_minor_number minor,
|
rtems_device_minor_number minor,
|
||||||
@@ -75,15 +70,8 @@ rtems_device_driver console_initialize(
|
|||||||
/* is_character_ready
|
/* is_character_ready
|
||||||
*
|
*
|
||||||
* This routine returns TRUE if a character is available.
|
* This routine returns TRUE if a character is available.
|
||||||
*
|
|
||||||
* Input parameters: NONE
|
|
||||||
*
|
|
||||||
* Output parameters: NONE
|
|
||||||
*
|
|
||||||
* Return values:
|
|
||||||
*/
|
*/
|
||||||
|
static bool is_character_ready(
|
||||||
bool is_character_ready(
|
|
||||||
char *ch,
|
char *ch,
|
||||||
int port
|
int port
|
||||||
)
|
)
|
||||||
@@ -95,41 +83,11 @@ bool is_character_ready(
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* quick_char_check
|
|
||||||
*
|
|
||||||
* This routine returns TRUE if a character is available.
|
|
||||||
* It is different from above because it does not disturb the ring buffer
|
|
||||||
*
|
|
||||||
* Input parameters: NONE
|
|
||||||
*
|
|
||||||
* Output parameters: NONE
|
|
||||||
*
|
|
||||||
* Return values:
|
|
||||||
*/
|
|
||||||
|
|
||||||
bool quick_char_check(
|
|
||||||
int port
|
|
||||||
)
|
|
||||||
{
|
|
||||||
if ( Ring_buffer_Is_empty( &Console_Buffer[ port ] ) )
|
|
||||||
return false;
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* inbyte
|
/* inbyte
|
||||||
*
|
*
|
||||||
* This routine reads a character from the UART through a buffer.
|
* This routine reads a character from the UART through a buffer.
|
||||||
*
|
|
||||||
* Input parameters: NONE
|
|
||||||
*
|
|
||||||
* Output parameters: NONE
|
|
||||||
*
|
|
||||||
* Return values:
|
|
||||||
* character read from UART
|
|
||||||
*/
|
*/
|
||||||
|
static char inbyte(
|
||||||
char inbyte(
|
|
||||||
int port
|
int port
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -147,14 +105,8 @@ char inbyte(
|
|||||||
*
|
*
|
||||||
* This routine transmits a character out the M68681. It supports
|
* This routine transmits a character out the M68681. It supports
|
||||||
* XON/XOFF flow control.
|
* XON/XOFF flow control.
|
||||||
*
|
|
||||||
* Input parameters:
|
|
||||||
* ch - character to be transmitted
|
|
||||||
*
|
|
||||||
* Output parameters: NONE
|
|
||||||
*/
|
*/
|
||||||
|
static void outbyte(
|
||||||
void outbyte(
|
|
||||||
char ch,
|
char ch,
|
||||||
int port
|
int port
|
||||||
)
|
)
|
||||||
@@ -173,7 +125,6 @@ void outbyte(
|
|||||||
/*
|
/*
|
||||||
* Open entry point
|
* Open entry point
|
||||||
*/
|
*/
|
||||||
|
|
||||||
rtems_device_driver console_open(
|
rtems_device_driver console_open(
|
||||||
rtems_device_major_number major,
|
rtems_device_major_number major,
|
||||||
rtems_device_minor_number minor,
|
rtems_device_minor_number minor,
|
||||||
@@ -186,7 +137,6 @@ rtems_device_driver console_open(
|
|||||||
/*
|
/*
|
||||||
* Close entry point
|
* Close entry point
|
||||||
*/
|
*/
|
||||||
|
|
||||||
rtems_device_driver console_close(
|
rtems_device_driver console_close(
|
||||||
rtems_device_major_number major,
|
rtems_device_major_number major,
|
||||||
rtems_device_minor_number minor,
|
rtems_device_minor_number minor,
|
||||||
@@ -199,7 +149,6 @@ rtems_device_driver console_close(
|
|||||||
/*
|
/*
|
||||||
* read bytes from the serial port. We only have stdin.
|
* read bytes from the serial port. We only have stdin.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
rtems_device_driver console_read(
|
rtems_device_driver console_read(
|
||||||
rtems_device_major_number major,
|
rtems_device_major_number major,
|
||||||
rtems_device_minor_number minor,
|
rtems_device_minor_number minor,
|
||||||
@@ -234,7 +183,6 @@ rtems_device_driver console_read(
|
|||||||
/*
|
/*
|
||||||
* write bytes to the serial port. Stdout and stderr are the same.
|
* write bytes to the serial port. Stdout and stderr are the same.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
rtems_device_driver console_write(
|
rtems_device_driver console_write(
|
||||||
rtems_device_major_number major,
|
rtems_device_major_number major,
|
||||||
rtems_device_minor_number minor,
|
rtems_device_minor_number minor,
|
||||||
|
|||||||
@@ -44,10 +44,13 @@ rtems_isr_entry set_vector(
|
|||||||
int type
|
int type
|
||||||
);
|
);
|
||||||
|
|
||||||
|
void rtems_bsp_delay(int num);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Prototypes for methods inside the BSP that cross file boundaries.
|
||||||
|
*/
|
||||||
void init_pit( void );
|
void init_pit( void );
|
||||||
|
|
||||||
void transmit_char( char ch );
|
void transmit_char( char ch );
|
||||||
|
|
||||||
void transmit_char_portb( char ch );
|
void transmit_char_portb( char ch );
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
int Ttimer_val;
|
int Ttimer_val;
|
||||||
bool benchmark_timer_find_average_overhead;
|
bool benchmark_timer_find_average_overhead;
|
||||||
|
|
||||||
rtems_isr_entry timerisr(rtems_vector_number);
|
rtems_isr timerisr(rtems_vector_number);
|
||||||
|
|
||||||
void benchmark_timer_initialize(void)
|
void benchmark_timer_initialize(void)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user