*\r
* Copyright (c) 2010 Frank Meyer - frank(at)fli4l.de\r
*\r
- * $Id: irsndconfig.h,v 1.5 2010/06/02 13:25:22 fm Exp $\r
+ * $Id: irsndconfig.h,v 1.7 2010/06/10 21:24:50 fm Exp $\r
*\r
* ATMEGA88 @ 8 MHz\r
*\r
*---------------------------------------------------------------------------------------------------------------------------------------------------\r
*/\r
\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * Change F_INTERRUPTS if you change the number of interrupts per second, F_INTERRUPTS should be in the range from 10000 to 15000\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
+#ifndef F_INTERRUPTS\r
+#define F_INTERRUPTS 10000 // interrupts per second\r
+#endif\r
+\r
/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
* Change settings from 1 to 0 if you want to disable one or more encoders.\r
* This saves program space.\r
#define IRSND_SUPPORT_BANG_OLUFSEN_PROTOCOL 1 // flag: support Bang&Olufsen uses ~250 bytes\r
#define IRSND_SUPPORT_GRUNDIG_PROTOCOL 1 // flag: support Grundig uses ~300 bytes\r
#define IRSND_SUPPORT_NOKIA_PROTOCOL 1 // flag: support Nokia uses ~400 bytes\r
+\r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * THE FOLLOWING ENCODERS WORK ONLY FOR F_INTERRUPTS > 14500!\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
+#if F_INTERRUPTS >= 14500\r
#define IRSND_SUPPORT_SIEMENS_PROTOCOL 1 // flag: support Siemens, e.g. Gigaset uses ~150 bytes\r
+#define IRSND_SUPPORT_FDC1_PROTOCOL 1 // flag: support FDC1 infrared keyboard uses ~150 bytes\r
+#define IRSND_SUPPORT_FDC2_PROTOCOL 1 // flag: support FDC2 infrared keyboard uses ~150 bytes\r
+#else\r
+#define IRSND_SUPPORT_SIEMENS_PROTOCOL 0 // DO NOT CHANGE! F_INTERRUPTS too low!\r
+#define IRSND_SUPPORT_FDC1_PROTOCOL 0 // DO NOT CHANGE! F_INTERRUPTS too low!\r
+#define IRSND_SUPPORT_FDC2_PROTOCOL 0 // DO NOT CHANGE! F_INTERRUPTS too low!\r
+#endif\r
+\r
\r
/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
* Change hardware pin here:\r
#define IRSND_DDR DDRB // ddr B\r
#define IRSND_BIT 3 // OC2A\r
#endif // __AVR...\r
-\r
-/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
- * Change F_INTERRUPTS if you change the number of interrupts per second, F_INTERRUPTS should be in the range from 10000 to 15000\r
- *---------------------------------------------------------------------------------------------------------------------------------------------------\r
- */\r
-#define F_INTERRUPTS 10000 // interrupts per second\r