summaryrefslogtreecommitdiff
path: root/irmpconfig.h
diff options
context:
space:
mode:
authorukw2011-09-22 10:26:04 +0000
committerukw2011-09-22 10:26:04 +0000
commit93ba2e012efb687bfd4387ee9f5b35dd456aa1f4 (patch)
treefe3d7327fc26e5a87c008b416dcd52d5d5a7601d /irmpconfig.h
parentb743217bc6b049961dae327ede0744e07a56ec99 (diff)
downloadirmp-93ba2e012efb687bfd4387ee9f5b35dd456aa1f4.zip
Version 2.0.2: improved jvc decoder (type 2 and 3)
git-svn-id: svn://mikrocontroller.net/irmp@83 aeb2e35e-bfc4-4214-b83c-9e8de998ed28
Diffstat (limited to 'irmpconfig.h')
-rw-r--r--irmpconfig.h72
1 files changed, 37 insertions, 35 deletions
diff --git a/irmpconfig.h b/irmpconfig.h
index 5afe094..a3b3db3 100644
--- a/irmpconfig.h
+++ b/irmpconfig.h
@@ -3,7 +3,7 @@
*
* Copyright (c) 2009-2011 Frank Meyer - frank(at)fli4l.de
*
- * $Id: irmpconfig.h,v 1.74 2011/09/11 13:17:38 fm Exp $
+ * $Id: irmpconfig.h,v 1.76 2011/09/22 10:19:44 fm Exp $
*
* ATMEGA88 @ 8 MHz
*
@@ -52,10 +52,10 @@
// more protocols, enable here! Enable Remarks F_INTERRUPTS Program Space
#define IRMP_SUPPORT_RC5_PROTOCOL 0 // RC5 >= 10000 ~250 bytes
-#define IRMP_SUPPORT_RC6_PROTOCOL 0 // RC6 & RC6A >= 10000 ~250 bytes
-#define IRMP_SUPPORT_JVC_PROTOCOL 0 // JVC >= 10000 ~150 bytes
-#define IRMP_SUPPORT_NEC16_PROTOCOL 0 // NEC16 >= 10000 ~100 bytes
-#define IRMP_SUPPORT_NEC42_PROTOCOL 0 // NEC42 >= 10000 ~300 bytes
+#define IRMP_SUPPORT_RC6_PROTOCOL 1 // RC6 & RC6A >= 10000 ~250 bytes
+#define IRMP_SUPPORT_JVC_PROTOCOL 1 // JVC >= 10000 ~150 bytes
+#define IRMP_SUPPORT_NEC16_PROTOCOL 1 // NEC16 >= 10000 ~100 bytes
+#define IRMP_SUPPORT_NEC42_PROTOCOL 1 // NEC42 >= 10000 ~300 bytes
#define IRMP_SUPPORT_IR60_PROTOCOL 0 // IR60 (SAB2008) >= 10000 ~300 bytes
#define IRMP_SUPPORT_GRUNDIG_PROTOCOL 0 // Grundig >= 10000 ~300 bytes
#define IRMP_SUPPORT_SIEMENS_PROTOCOL 0 // Siemens Gigaset >= 15000 ~550 bytes
@@ -79,17 +79,19 @@
* Change hardware pin here:
*---------------------------------------------------------------------------------------------------------------------------------------------------
*/
-#ifdef PIC_CCS_COMPILER // PIC CCS Compiler:
+#if defined (PIC_C18) // Microchip C18 Compiler
+#include <p18cxxx.h> // main PIC18 h file
+#define IRMP_PIN PORTBbits.RB4 // use RB4 as IR input on PIC
+#define input(x) (x)
-#define IRMP_PIN PIN_B4 // use PB4 as IR input on PIC
-
-#else // AVR:
+#elif defined (PIC_CCS_COMPILER) // PIC CCS Compiler:
+#define IRMP_PIN PIN_B4 // use PB4 as IR input on PIC
+#else // AVR:
#define IRMP_PORT PORTB
#define IRMP_DDR DDRB
#define IRMP_PIN PINB
-#define IRMP_BIT 6 // use PB6 as IR input on AVR
-
+#define IRMP_BIT 6 // use PB6 as IR input on AVR
#define input(x) ((x) & (1 << IRMP_BIT))
#endif
@@ -118,51 +120,51 @@
*---------------------------------------------------------------------------------------------------------------------------------------------------
*/
#if IRMP_SUPPORT_SIEMENS_PROTOCOL == 1 && F_INTERRUPTS < 15000
-#warning F_INTERRUPTS too low, SIEMENS protocol disabled (should be at least 15000)
-#undef IRMP_SUPPORT_SIEMENS_PROTOCOL
-#define IRMP_SUPPORT_SIEMENS_PROTOCOL 0
+# warning F_INTERRUPTS too low, SIEMENS protocol disabled (should be at least 15000)
+# undef IRMP_SUPPORT_SIEMENS_PROTOCOL
+# define IRMP_SUPPORT_SIEMENS_PROTOCOL 0
#endif
#if IRMP_SUPPORT_RUWIDO_PROTOCOL == 1 && F_INTERRUPTS < 15000
-#warning F_INTERRUPTS too low, RUWIDO protocol disabled (should be at least 15000)
-#undef IRMP_SUPPORT_RUWIDO_PROTOCOL
-#define IRMP_SUPPORT_RUWIDO_PROTOCOL 0
+# warning F_INTERRUPTS too low, RUWIDO protocol disabled (should be at least 15000)
+# undef IRMP_SUPPORT_RUWIDO_PROTOCOL
+# define IRMP_SUPPORT_RUWIDO_PROTOCOL 0
#endif
#if IRMP_SUPPORT_RECS80_PROTOCOL == 1 && F_INTERRUPTS < 15000
-#warning F_INTERRUPTS too low, RECS80 protocol disabled (should be at least 15000)
-#undef IRMP_SUPPORT_RECS80_PROTOCOL
-#define IRMP_SUPPORT_RECS80_PROTOCOL 0
+# warning F_INTERRUPTS too low, RECS80 protocol disabled (should be at least 15000)
+# undef IRMP_SUPPORT_RECS80_PROTOCOL
+# define IRMP_SUPPORT_RECS80_PROTOCOL 0
#endif
#if IRMP_SUPPORT_RECS80EXT_PROTOCOL == 1 && F_INTERRUPTS < 15000
-#warning F_INTERRUPTS too low, RECS80EXT protocol disabled (should be at least 15000)
-#undef IRMP_SUPPORT_RECS80EXT_PROTOCOL
-#define IRMP_SUPPORT_RECS80EXT_PROTOCOL 0
+# warning F_INTERRUPTS too low, RECS80EXT protocol disabled (should be at least 15000)
+# undef IRMP_SUPPORT_RECS80EXT_PROTOCOL
+# define IRMP_SUPPORT_RECS80EXT_PROTOCOL 0
#endif
#if IRMP_SUPPORT_LEGO_PROTOCOL == 1 && F_INTERRUPTS < 20000
-#warning F_INTERRUPTS too low, LEGO protocol disabled (should be at least 20000)
-#undef IRMP_SUPPORT_LEGO_PROTOCOL
-#define IRMP_SUPPORT_LEGO_PROTOCOL 0
+# warning F_INTERRUPTS too low, LEGO protocol disabled (should be at least 20000)
+# undef IRMP_SUPPORT_LEGO_PROTOCOL
+# define IRMP_SUPPORT_LEGO_PROTOCOL 0
#endif
#if IRMP_SUPPORT_JVC_PROTOCOL == 1 && IRMP_SUPPORT_NEC_PROTOCOL == 0
-#warning JVC protocol needs also NEC protocol, NEC protocol enabled
-#undef IRMP_SUPPORT_NEC_PROTOCOL
-#define IRMP_SUPPORT_NEC_PROTOCOL 1
+# warning JVC protocol needs also NEC protocol, NEC protocol enabled
+# undef IRMP_SUPPORT_NEC_PROTOCOL
+# define IRMP_SUPPORT_NEC_PROTOCOL 1
#endif
#if IRMP_SUPPORT_NEC16_PROTOCOL == 1 && IRMP_SUPPORT_NEC_PROTOCOL == 0
-#warning NEC16 protocol needs also NEC protocol, NEC protocol enabled
-#undef IRMP_SUPPORT_NEC_PROTOCOL
-#define IRMP_SUPPORT_NEC_PROTOCOL 1
+# warning NEC16 protocol needs also NEC protocol, NEC protocol enabled
+# undef IRMP_SUPPORT_NEC_PROTOCOL
+# define IRMP_SUPPORT_NEC_PROTOCOL 1
#endif
#if IRMP_SUPPORT_NEC42_PROTOCOL == 1 && IRMP_SUPPORT_NEC_PROTOCOL == 0
-#warning NEC42 protocol needs also NEC protocol, NEC protocol enabled
-#undef IRMP_SUPPORT_NEC_PROTOCOL
-#define IRMP_SUPPORT_NEC_PROTOCOL 1
+# warning NEC42 protocol needs also NEC protocol, NEC protocol enabled
+# undef IRMP_SUPPORT_NEC_PROTOCOL
+# define IRMP_SUPPORT_NEC_PROTOCOL 1
#endif
#if F_INTERRUPTS > 20000