Gary Richardson
/
Counter
Use of two timers to implement a counter of an external signal
Diff: Timer2.h
- Revision:
- 0:e619b6823668
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Timer2.h Tue Jan 28 17:01:19 2014 +0000 @@ -0,0 +1,12 @@ +#ifndef __TIMER2_H +#define __TIMER2_H + +#define CLOCK 96000000 + +typedef void (*funcptr)(void); +extern void Timer2_init(funcptr callback); +extern void Timer2_start(int prescale); + +#endif + +