OpenCores
URL https://opencores.org/ocsvn/eco32/eco32/trunk

Subversion Repositories eco32

[/] [eco32/] [trunk/] [sim/] [timer.h] - Blame information for rev 12

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 8 hellwig
/*
2
 * timer.h -- timer simulation
3
 */
4
 
5
 
6
#ifndef _TIMER_H_
7
#define _TIMER_H_
8
 
9
 
10
#define TIMER_CTRL      0        /* timer control register */
11
#define TIMER_DIVISOR   4       /* timer divisor register */
12
 
13
#define TIMER_EXP       0x01    /* timer has expired */
14
#define TIMER_IEN       0x02    /* enable timer interrupt */
15
 
16
#define NUMBER_TIMERS   20      /* total number of simulation timers */
17
 
18
 
19
Word timerRead(Word addr);
20
void timerWrite(Word addr, Word data);
21
 
22
void timerTick(void);
23
void timerStart(int msec, void (*callback)(int param), int param);
24
 
25
void timerReset(void);
26
void timerInit(void);
27
void timerExit(void);
28
 
29
 
30
#endif /* _TIMER_H_ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.