timer.h
Go to the documentation of this file.
1 /*
2  * @file timer.h
3  * @author Chris Hajduk
4  * @created September 2, 2015, 3:37 PM
5  * @description Provides functions for initializing the timers (only Timers 2 and 4 used)
6  * as well as getting the current system time
7  */
8 
9 #ifndef TIMER_H
10 #define TIMER_H
11 
20 #define T2_TICKS_TO_MSEC 642
21 
27 #define T2_PERIOD 20
28 
32 void initTimer2(void);
33 
37 void initTimer4(void);
38 
43 long unsigned int getTime();
44 
45 #endif
long unsigned int getTime()
Get current time in ms.
Definition: timer.c:54
void initTimer4(void)
Initializes Timer4.
Definition: timer.c:33
void initTimer2(void)
Initializes Timer2.
Definition: timer.c:16