summaryrefslogtreecommitdiff
path: root/irsndconfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'irsndconfig.h')
-rw-r--r--irsndconfig.h28
1 files changed, 21 insertions, 7 deletions
diff --git a/irsndconfig.h b/irsndconfig.h
index c2a8e2d..253a308 100644
--- a/irsndconfig.h
+++ b/irsndconfig.h
@@ -3,7 +3,7 @@
*
* Copyright (c) 2010 Frank Meyer - frank(at)fli4l.de
*
- * $Id: irsndconfig.h,v 1.5 2010/06/02 13:25:22 fm Exp $
+ * $Id: irsndconfig.h,v 1.6 2010/06/08 23:34:14 fm Exp $
*
* ATMEGA88 @ 8 MHz
*
@@ -15,6 +15,14 @@
*/
/*---------------------------------------------------------------------------------------------------------------------------------------------------
+ * Change F_INTERRUPTS if you change the number of interrupts per second, F_INTERRUPTS should be in the range from 10000 to 15000
+ *---------------------------------------------------------------------------------------------------------------------------------------------------
+ */
+#ifndef F_INTERRUPTS
+#define F_INTERRUPTS 10000 // interrupts per second
+#endif
+
+/*---------------------------------------------------------------------------------------------------------------------------------------------------
* Change settings from 1 to 0 if you want to disable one or more encoders.
* This saves program space.
* 1 enable decoder
@@ -35,7 +43,19 @@
#define IRSND_SUPPORT_BANG_OLUFSEN_PROTOCOL 1 // flag: support Bang&Olufsen uses ~250 bytes
#define IRSND_SUPPORT_GRUNDIG_PROTOCOL 1 // flag: support Grundig uses ~300 bytes
#define IRSND_SUPPORT_NOKIA_PROTOCOL 1 // flag: support Nokia uses ~400 bytes
+
+/*---------------------------------------------------------------------------------------------------------------------------------------------------
+ * THE FOLLOWING ENCODERS WORK ONLY FOR F_INTERRUPTS > 14500!
+ *---------------------------------------------------------------------------------------------------------------------------------------------------
+ */
+#if F_INTERRUPTS >= 14500
#define IRSND_SUPPORT_SIEMENS_PROTOCOL 1 // flag: support Siemens, e.g. Gigaset uses ~150 bytes
+#define IRSND_SUPPORT_FDC_PROTOCOL 1 // flag: support FDC infrared keyboard uses ~150 bytes
+#else
+#define IRSND_SUPPORT_SIEMENS_PROTOCOL 0 // DO NOT CHANGE! F_INTERRUPTS too low!
+#define IRSND_SUPPORT_FDC_PROTOCOL 0 // DO NOT CHANGE! F_INTERRUPTS too low!
+#endif
+
/*---------------------------------------------------------------------------------------------------------------------------------------------------
* Change hardware pin here:
@@ -50,9 +70,3 @@
#define IRSND_DDR DDRB // ddr B
#define IRSND_BIT 3 // OC2A
#endif // __AVR...
-
-/*---------------------------------------------------------------------------------------------------------------------------------------------------
- * Change F_INTERRUPTS if you change the number of interrupts per second, F_INTERRUPTS should be in the range from 10000 to 15000
- *---------------------------------------------------------------------------------------------------------------------------------------------------
- */
-#define F_INTERRUPTS 10000 // interrupts per second