URL
https://opencores.org/ocsvn/eco32/eco32/trunk
Subversion Repositories eco32
[/] [eco32/] [tags/] [eco32-0.22/] [sim/] [timer.h] - Rev 137
Go to most recent revision | Compare with Previous | Blame | View Log
/* * timer.h -- timer simulation */ #ifndef _TIMER_H_ #define _TIMER_H_ #define TIMER_CTRL 0 /* timer control register */ #define TIMER_DIVISOR 4 /* timer divisor register */ #define TIMER_EXP 0x01 /* timer has expired */ #define TIMER_IEN 0x02 /* enable timer interrupt */ #define NUMBER_TIMERS 20 /* total number of simulation timers */ Word timerRead(Word addr); void timerWrite(Word addr, Word data); void timerTick(void); void timerStart(int msec, void (*callback)(int param), int param); void timerReset(void); void timerInit(void); void timerExit(void); #endif /* _TIMER_H_ */
Go to most recent revision | Compare with Previous | Blame | View Log