mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-23 21:26:50 +08:00
mrm332: Tests now build and fewer warnings
This commit is contained in:
@@ -35,6 +35,9 @@ void Clock_exit( void );
|
||||
rtems_device_major_number rtems_clock_major = ~0;
|
||||
rtems_device_minor_number rtems_clock_minor;
|
||||
|
||||
rtems_isr Clock_isr(rtems_vector_number vector);
|
||||
void Install_clock(rtems_isr_entry clock_isr);
|
||||
|
||||
rtems_isr Clock_isr(rtems_vector_number vector)
|
||||
{
|
||||
Clock_driver_ticks += 1;
|
||||
@@ -47,9 +50,7 @@ rtems_isr Clock_isr(rtems_vector_number vector)
|
||||
Clock_isrs -= 1;
|
||||
}
|
||||
|
||||
void Install_clock(
|
||||
rtems_isr_entry clock_isr
|
||||
)
|
||||
void Install_clock(rtems_isr_entry clock_isr)
|
||||
{
|
||||
Clock_driver_ticks = 0;
|
||||
Clock_isrs = rtems_configuration_get_microseconds_per_tick() / 1000;
|
||||
|
||||
@@ -86,9 +86,9 @@
|
||||
#include <libchip/serial.h>
|
||||
#include <libchip/sersupp.h>
|
||||
#include "sci.h"
|
||||
#include <rtems/m68k/qsm.h>
|
||||
/*#include "../misc/include/cpu332.h" */
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
Section B - Manifest Constants
|
||||
*****************************************************************************/
|
||||
@@ -152,6 +152,8 @@ rtems_device_driver SciControl( /* device driver api */
|
||||
rtems_device_driver SciRead (
|
||||
rtems_device_major_number, rtems_device_minor_number, void *);
|
||||
|
||||
rtems_isr SciIsr( rtems_vector_number vector );
|
||||
|
||||
int SciInterruptOpen(int, int, void *); /* termios api */
|
||||
int SciInterruptClose(int, int, void *); /* termios api */
|
||||
ssize_t SciInterruptWrite(int, const char *, size_t); /* termios api */
|
||||
@@ -1096,7 +1098,7 @@ rtems_device_driver SciWrite (
|
||||
{
|
||||
rtems_libio_rw_args_t *rw_args; /* ptr to argument struct */
|
||||
uint8_t *buffer;
|
||||
uint16_t length;
|
||||
size_t length;
|
||||
|
||||
rw_args = (rtems_libio_rw_args_t *) arg;
|
||||
|
||||
|
||||
@@ -29,7 +29,6 @@ extern "C" {
|
||||
#include <rtems/iosupp.h>
|
||||
#include <mrm332.h>
|
||||
#include <rtems/m68k/sim.h>
|
||||
#include <rtems/m68k/qsm.h>
|
||||
|
||||
#define CONSOLE_SCI
|
||||
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
/*
|
||||
* This routine starts the application. It includes application,
|
||||
* board, and monitor specific initialization and configuration.
|
||||
* The generic CPU dependent initialization has been performed
|
||||
* before this routine is invoked.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-1999.
|
||||
* COPYRIGHT (c) 1989-2014.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -13,6 +8,7 @@
|
||||
*/
|
||||
|
||||
#include <bsp.h>
|
||||
#include <bsp/bootcard.h>
|
||||
|
||||
extern void Spurious_Initialize(void);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user