Infrared4Arduino
IrTimerDefs.h
Go to the documentation of this file.
1 #ifndef IRTIMERDEFS_H
2 #define IRTIMERDEFS_H
3 
9 #define IRPRONTO
11 #include "IRremoteInt.h"
13 #undef IRPRONTO
14 
15 // These have different meanings for us than in IRremote, undefine
16 #undef STATE_IDLE
17 #undef STATE_MARK
18 #undef STATE_SPACE
19 #undef STATE_STOP
20 #undef STATE_OVERFLOW
21 
22 // Undef these, just to be on the safe side
23 #undef RAWBUF
24 #undef MARK_EXCESS
25 #undef TOLERANCE
26 #undef MARK
27 #undef SPACE
28 
29 #ifndef ARDUINO
30 
31 // Just dummy junk to allow builds outside of the Arduino environment.
32 
33 #undef TIMER_CONFIG_NORMAL
34 #define TIMER_CONFIG_NORMAL()
35 
36 #undef TIMER_ENABLE_INTR
37 #define TIMER_ENABLE_INTR
38 
39 #undef TIMER_DISABLE_INTR
40 #define TIMER_DISABLE_INTR
41 
42 #define ISR(x) void functionThatIDoNotNeed()
43 
44 //#define IR_SEND_PWM_PIN 0
45 
46 #undef TIMER_DISABLE_PWM
47 #define TIMER_DISABLE_PWM
48 
49 #undef TIMER_ENABLE_PWM
50 #define TIMER_ENABLE_PWM
51 
52 #undef TIMER_CONFIG_KHZ
53 #define TIMER_CONFIG_KHZ(x) /* Empty */
54 
55 #endif // ! ARDUINO
56 
57 #endif /* IRTIMERDEFS_H */
58