ReflexBall Rally
 All Data Structures Files Functions Variables Macros
time.h
Go to the documentation of this file.
1 #ifndef _time_h_
2 #define _time_h_
3 
4 #define PRE1 (0 << 3);
5 #define PRE2 (1 << 3);
6 #define PRE4 (2 << 3);
7 #define PRE8 (3 << 3);
8 #define PRE16 (4 << 3);
9 #define PRE32 (5 << 3);
10 #define PRE64 (6 << 3);
11 #define PRE128 (7 << 3);
12 
13 #define PRIORITY_TIMER0 (1 << 5)
14 #define PRIORITY_TIMER1 (1 << 6)
15 #define PRIORITY_TIMER2 (1 << 7)
16 
17 // Public
18 void initTimers();
19 unsigned long millis();
20 void delay_ms(unsigned long time);
21 
22 // Private
23 void timer1int();
24 
25 #endif