Mozzi  alpha 0.01.1f
sound synthesis library for Arduino
 All Classes Functions
FlexiTimer2.h
00001 #ifndef FlexiTimer2_h
00002 #define FlexiTimer2_h
00003 
00004 #ifdef __AVR__
00005 #include <avr/interrupt.h>
00006 #else
00007 #error FlexiTimer2 library only works on AVR architecture
00008 #endif
00009 
00010 
00011 namespace FlexiTimer2 {
00012                 extern unsigned long time_units;
00013                 extern void (*func)();
00014                 extern volatile unsigned long count;
00015                 extern volatile char overflowing;
00016                 extern volatile unsigned int tcnt2;
00017                 
00018                 void set(unsigned long ms, void (*f)());
00019                 void set(unsigned long units, double resolution, void (*f)());
00020                 void start();
00021                 void stop();
00022                 void _overflow();
00023 }
00024 
00025 #endif