26 lines
312 B
C
26 lines
312 B
C
/*
|
|
* timer.h
|
|
*
|
|
* Created on: May 31, 2017
|
|
* Author: wn
|
|
*/
|
|
|
|
#ifndef TIMER_H_
|
|
#define TIMER_H_
|
|
|
|
typedef enum {
|
|
TT_IDLE = 0,
|
|
TT_STARTED,
|
|
TT_RUNNING,
|
|
TT_OVERRUN,
|
|
TT_MAX
|
|
} tTimerState;
|
|
|
|
|
|
void timerInit();
|
|
void secondTick(void *handle);
|
|
void startTimer();
|
|
void stopTimer();
|
|
|
|
#endif /* TIMER_H_ */
|