forked from Imagelibrary/rtems
Add missing prototypes.
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
#include <bsp.h>
|
#include <bsp.h>
|
||||||
#include <rtems/clockdrv.h>
|
#include <rtems/clockdrv.h>
|
||||||
|
|
||||||
void bsp_return_to_monitor_trap()
|
void bsp_return_to_monitor_trap(void)
|
||||||
{
|
{
|
||||||
extern void start( void );
|
extern void start( void );
|
||||||
|
|
||||||
|
|||||||
@@ -34,9 +34,9 @@
|
|||||||
int Ttimer_val;
|
int Ttimer_val;
|
||||||
rtems_boolean Timer_driver_Find_average_overhead;
|
rtems_boolean Timer_driver_Find_average_overhead;
|
||||||
|
|
||||||
rtems_isr timerisr();
|
rtems_isr timerisr(void);
|
||||||
|
|
||||||
void Timer_initialize()
|
void Timer_initialize(void)
|
||||||
{
|
{
|
||||||
(void) set_vector(timerisr, TIMER_1_VECTOR, 0); /* install ISR */
|
(void) set_vector(timerisr, TIMER_1_VECTOR, 0); /* install ISR */
|
||||||
|
|
||||||
@@ -56,7 +56,7 @@ void Timer_initialize()
|
|||||||
synchronized whith the counter updates*/
|
synchronized whith the counter updates*/
|
||||||
#define LEAST_VALID 10 /* Don't trust a value lower than this */
|
#define LEAST_VALID 10 /* Don't trust a value lower than this */
|
||||||
|
|
||||||
int Read_timer()
|
int Read_timer(void)
|
||||||
{
|
{
|
||||||
uint32_t total;
|
uint32_t total;
|
||||||
uint16_t counter_value;
|
uint16_t counter_value;
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
#include <rtems/zilog/z8036.h>
|
#include <rtems/zilog/z8036.h>
|
||||||
#include <page_table.h>
|
#include <page_table.h>
|
||||||
|
|
||||||
void bsp_return_to_monitor_trap()
|
void bsp_return_to_monitor_trap(void)
|
||||||
{
|
{
|
||||||
extern void start( void );
|
extern void start( void );
|
||||||
|
|
||||||
|
|||||||
@@ -40,9 +40,9 @@
|
|||||||
uint32_t Ttimer_val;
|
uint32_t Ttimer_val;
|
||||||
rtems_boolean Timer_driver_Find_average_overhead;
|
rtems_boolean Timer_driver_Find_average_overhead;
|
||||||
|
|
||||||
rtems_isr timerisr();
|
rtems_isr timerisr(void);
|
||||||
|
|
||||||
void Timer_initialize()
|
void Timer_initialize(void)
|
||||||
{
|
{
|
||||||
(void) set_vector( timerisr, VBR0 * 0x10 + 0x8, 0 );
|
(void) set_vector( timerisr, VBR0 * 0x10 + 0x8, 0 );
|
||||||
|
|
||||||
@@ -63,7 +63,7 @@ void Timer_initialize()
|
|||||||
/* (3 countdowns) to start/stop the timer. */
|
/* (3 countdowns) to start/stop the timer. */
|
||||||
#define LEAST_VALID 10U /* Don't trust a value lower than this */
|
#define LEAST_VALID 10U /* Don't trust a value lower than this */
|
||||||
|
|
||||||
int Read_timer()
|
int Read_timer(void)
|
||||||
{
|
{
|
||||||
uint32_t total;
|
uint32_t total;
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ static void setTod(int n, unsigned char d)
|
|||||||
tod[n] = ((d/10)<<4)+(d%10);
|
tod[n] = ((d/10)<<4)+(d%10);
|
||||||
}
|
}
|
||||||
|
|
||||||
void setRealTimeToRTEMS()
|
void setRealTimeToRTEMS(void)
|
||||||
{
|
{
|
||||||
rtems_time_of_day t;
|
rtems_time_of_day t;
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ uint32_t Ttimer_val;
|
|||||||
*/
|
*/
|
||||||
rtems_boolean Timer_driver_Find_average_overhead;
|
rtems_boolean Timer_driver_Find_average_overhead;
|
||||||
|
|
||||||
rtems_isr timerisr();
|
rtems_isr timerisr(void);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This routine initializes the Tick Timer 1 on the MVME167 board.
|
* This routine initializes the Tick Timer 1 on the MVME167 board.
|
||||||
@@ -70,7 +70,7 @@ rtems_isr timerisr();
|
|||||||
* boot ROM to provide a 1 MHz clock to the timers. For a 25 MHz MVME167, the
|
* boot ROM to provide a 1 MHz clock to the timers. For a 25 MHz MVME167, the
|
||||||
* prescaler value should be 0xE7 (page 2-63).
|
* prescaler value should be 0xE7 (page 2-63).
|
||||||
*/
|
*/
|
||||||
void Timer_initialize()
|
void Timer_initialize(void)
|
||||||
{
|
{
|
||||||
(void) set_vector( timerisr, TIMER_VECTOR, 0 );
|
(void) set_vector( timerisr, TIMER_VECTOR, 0 );
|
||||||
|
|
||||||
@@ -105,7 +105,7 @@ void Timer_initialize()
|
|||||||
* LEAST_VALID is the lowest number this routine should trust. Numbers
|
* LEAST_VALID is the lowest number this routine should trust. Numbers
|
||||||
* below this are "noise" and zero is returned.
|
* below this are "noise" and zero is returned.
|
||||||
*/
|
*/
|
||||||
int Read_timer()
|
int Read_timer(void)
|
||||||
{
|
{
|
||||||
uint32_t total;
|
uint32_t total;
|
||||||
|
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ extern int RAM_SIZE, RAM_BASE;
|
|||||||
#define _RAM_SIZE ((unsigned int)&RAM_SIZE)
|
#define _RAM_SIZE ((unsigned int)&RAM_SIZE)
|
||||||
#define _RAM_BASE ((unsigned int)&RAM_BASE)
|
#define _RAM_BASE ((unsigned int)&RAM_BASE)
|
||||||
|
|
||||||
void boot_phase_1()
|
void boot_phase_1(void)
|
||||||
{
|
{
|
||||||
M302_SCR = SCR_DEFAULT;
|
M302_SCR = SCR_DEFAULT;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user