pete286/timer.h
Jeremy Penner 49f532a85b JOPL adlib livecoding environment; stop including JIM files in git
I now have multiple executables that depend on the same .jor source files
and I am not diligent about ensuring that both are up-to-date and working.
As small changes to source files can cause .jim files to fail silently,
I've removed them from the repo for now.
2019-03-31 19:29:16 -04:00

13 lines
327 B
C
Executable file

#define TIMER_60HZ 0x4dae
#define TIMER_50HZ 0x5d37
#define TIMER_40HZ 0x7486
#define TIMER_30HZ 0x965c
#define TIMER_20HZ 0xe90b
#define TIMER_18HZ 0xffff
extern volatile unsigned int timer_counter;
void timer_init(unsigned int rate);
void timer_setrate(unsigned int rate);
void timer_setcallback(void (*cb)());