]> cloudbase.mooo.com Git - irmp.git/blobdiff - irsndconfig.h
Version 3.0.7 - added SAMSUNGAH protocol, improved some code for ESP8266
[irmp.git] / irsndconfig.h
index bded8ed636f948d4cd2b3fec9c28cecd90b6a8db..8ed36bf75053de487cc822bb8adbb9281e941bc2 100644 (file)
@@ -5,7 +5,7 @@
  *\r
  * Copyright (c) 2010-2016 Frank Meyer - frank(at)fli4l.de\r
  *\r
- * $Id: irsndconfig.h,v 1.88 2016/09/09 07:53:29 fm Exp $\r
+ * $Id: irsndconfig.h,v 1.89 2016/12/19 09:01:41 fm Exp $\r
  *\r
  * This program is free software; you can redistribute it and/or modify\r
  * it under the terms of the GNU General Public License as published by\r
@@ -21,7 +21,7 @@
 #  error please include only irsnd.h, not irsndconfig.h\r
 #endif\r
 \r
-//~ #define IRSND_DEBUG 1                                   // activate debugging\r
+// #define IRSND_DEBUG 1                                // activate debugging\r
 \r
 /*---------------------------------------------------------------------------------------------------------------------------------------------------\r
  * F_INTERRUPTS: number of interrupts per second, should be in the range from 10000 to 20000, typically 15000\r
@@ -48,7 +48,7 @@
 \r
 // more protocols, enable here!                 Enable  Remarks                 F_INTERRUPTS            Program Space\r
 #define IRSND_SUPPORT_DENON_PROTOCOL            0       // DENON, Sharp         >= 10000                 ~200 bytes\r
-#define IRSND_SUPPORT_RC5_PROTOCOL              0       // RC5                  >= 10000                 ~150 bytes\r
+#define IRSND_SUPPORT_RC5_PROTOCOL              1       // RC5                  >= 10000                 ~150 bytes\r
 #define IRSND_SUPPORT_RC6_PROTOCOL              0       // RC6                  >= 10000                 ~250 bytes\r
 #define IRSND_SUPPORT_RC6A_PROTOCOL             0       // RC6A                 >= 10000                 ~250 bytes\r
 #define IRSND_SUPPORT_JVC_PROTOCOL              0       // JVC                  >= 10000                 ~150 bytes\r
  *---------------------------------------------------------------------------------------------------------------------------------------------------\r
  */\r
 #if defined(__AVR_XMEGA__)                                              // XMEGA\r
-#  define IRSND_PORT_PRE                        PORTD                   \r
+#  define IRSND_PORT_PRE                        PORTD\r
 #  define XMEGA_Timer                           TCD0\r
 #  define IRSND_OCx                             IRSND_XMEGA_OC0B        // use OC0B\r
 \r
 #  error target system not defined.\r
 #endif\r
 \r
+/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ * ESP8266 (Arduino, see IRSEND.ino)\r
+ *---------------------------------------------------------------------------------------------------------------------------------------------------\r
+ */\r
+#elif defined (__xtensa__)\r
+#  define IRSND_PIN                             0                       // choose an arduino pin with PWM function!\r
+\r
 /*---------------------------------------------------------------------------------------------------------------------------------------------------\r
  * Use Callbacks to indicate output signal or something else\r
  *---------------------------------------------------------------------------------------------------------------------------------------------------\r