NXShield  v1.07
NXShield Library Reference by OpenElectrons.com
 All Classes Files Functions Variables Enumerations Enumerator Macros Pages
MsTimer2.h
1 #if defined(__AVR__)
2 #ifndef MsTimer2_h
3 #define MsTimer2_h
4 
5 #include <avr/interrupt.h>
6 
7 namespace MsTimer2 {
8  extern unsigned long msecs;
9  extern void (*func)();
10  extern volatile unsigned long count;
11  extern volatile char overflowing;
12  extern volatile unsigned int tcnt2;
13 
14  void set(unsigned long ms, void (*f)());
15  void start();
16  void stop();
17  void _overflow();
18 }
19 
20 #endif
21 #endif