Use of two timers to implement a counter of an external signal
Timer2.h
- Committer:
- garyr
- Date:
- 2014-01-28
- Revision:
- 0:e619b6823668
File content as of revision 0:e619b6823668:
#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