diff options
author | Pawel Pekala <pawel@FreeBSD.org> | 2012-07-21 09:17:05 +0000 |
---|---|---|
committer | Pawel Pekala <pawel@FreeBSD.org> | 2012-07-21 09:17:05 +0000 |
commit | 455299f98c3ed7381b364e909aeb77638bef5905 (patch) | |
tree | cf4e56bc6450bb289dc612b30c606e6d9ce9dca6 /devel/arduino-irremote/files/patch-IRremoteInt.h | |
parent | - Update MASTER_SITE (diff) |
A Multi-Protocol Infrared Remote Library for the Arduino
This IR remote library, written by Ken Shirriff, lets you both send
and receive IR remote codes in multiple protocols. It supports NEC,
Sony SIRC, Philips RC5, Philips RC6, and raw protocols.
WWW: http://www.arcfn.com/2009/08/multi-protocol-infrared-remote-library.html
PR: ports/163806
Submitted by: Craig Leres <leres@ee.lbl.gov>
Notes
Notes:
svn path=/head/; revision=301269
Diffstat (limited to 'devel/arduino-irremote/files/patch-IRremoteInt.h')
-rw-r--r-- | devel/arduino-irremote/files/patch-IRremoteInt.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/devel/arduino-irremote/files/patch-IRremoteInt.h b/devel/arduino-irremote/files/patch-IRremoteInt.h new file mode 100644 index 000000000000..0d93789b431e --- /dev/null +++ b/devel/arduino-irremote/files/patch-IRremoteInt.h @@ -0,0 +1,22 @@ +$FreeBSD$ + +--- IRremoteInt.h.orig 2009-09-05 23:55:48.000000000 -0700 ++++ IRremoteInt.h 2011-12-27 15:40:59.000000000 -0800 +@@ -12,12 +12,16 @@ + #ifndef IRremoteint_h + #define IRremoteint_h + ++#if defined(ARDUINO) && ARDUINO >= 100 ++#include <Arduino.h> ++#else + #include <WProgram.h> ++#endif + + #define CLKFUDGE 5 // fudge factor for clock interrupt overhead + #define CLK 256 // max value for clock (timer 2) + #define PRESCALE 8 // timer2 clock prescale +-#define SYSCLOCK 16000000 // main Arduino clock ++#define SYSCLOCK F_CPU // main Arduino clock + #define CLKSPERUSEC (SYSCLOCK/PRESCALE/1000000) // timer clocks per microsecond + + #define ERR 0 |