# HG changeset patch
# User Wolfgang
# Date 1447713761 -3600
#      Mon Nov 16 23:42:41 2015 +0100
# Node ID d10a8fc74be8ac8aae2bd6963ebdec0cba4aa823
# Parent  d2bae762aeeba90cda6e5d4347ad90d615a9acef
Änderungen gegenüber SVN

diff -r d2bae762aeeb -r d10a8fc74be8 irmp.h
--- a/irmp.h	Mon Nov 16 23:28:08 2015 +0100
+++ b/irmp.h	Mon Nov 16 23:42:41 2015 +0100
@@ -11,7 +11,7 @@
  * (at your option) any later version.
  *---------------------------------------------------------------------------------------------------------------------------------------------------
  */
-
+ 
 #ifndef _IRMP_H_
 #define _IRMP_H_
 
@@ -80,6 +80,10 @@
 #  define IRMP_BIT                              IRMP_BIT_NUMBER
 #  define input(x)                              ((x) & (1 << IRMP_BIT))
 
+
+#elif defined(__xtensa__)
+# define IRMP_BIT IRMP_BIT_NUMBER
+# define input(x)   GPIO_INPUT_GET( IRMP_BIT_NUMBER)
 #endif
 
 #if IRMP_SUPPORT_TECHNICS_PROTOCOL == 1
diff -r d2bae762aeeb -r d10a8fc74be8 irmpconfig.h
--- a/irmpconfig.h	Mon Nov 16 23:28:08 2015 +0100
+++ b/irmpconfig.h	Mon Nov 16 23:42:41 2015 +0100
@@ -33,6 +33,8 @@
 #  define F_INTERRUPTS                          15000   // interrupts per second, min: 10000, max: 20000, typ: 15000
 #endif
 
+#define  IRMP_PROTOCOL_NAMES 1
+
 /*---------------------------------------------------------------------------------------------------------------------------------------------------
  * Change settings from 1 to 0 if you want to disable one or more decoders.
  * This saves program space.
@@ -61,7 +63,7 @@
 #define IRMP_SUPPORT_NEC42_PROTOCOL             0       // NEC42                >= 10000                 ~300 bytes
 #define IRMP_SUPPORT_MATSUSHITA_PROTOCOL        0       // Matsushita           >= 10000                  ~50 bytes
 #define IRMP_SUPPORT_DENON_PROTOCOL             0       // DENON, Sharp         >= 10000                 ~250 bytes
-#define IRMP_SUPPORT_RC5_PROTOCOL               0       // RC5                  >= 10000                 ~250 bytes
+#define IRMP_SUPPORT_RC5_PROTOCOL               1       // RC5                  >= 10000                 ~250 bytes
 #define IRMP_SUPPORT_RC6_PROTOCOL               0       // RC6 & RC6A           >= 10000                 ~250 bytes
 #define IRMP_SUPPORT_IR60_PROTOCOL              0       // IR60 (SDA2008)       >= 10000                 ~300 bytes
 #define IRMP_SUPPORT_GRUNDIG_PROTOCOL           0       // Grundig              >= 10000                 ~300 bytes
@@ -75,13 +77,13 @@
 #define IRMP_SUPPORT_FAN_PROTOCOL               0       // FAN (ventilator)     >= 10000                  ~50 bytes
 #define IRMP_SUPPORT_SPEAKER_PROTOCOL           0       // SPEAKER (~NUBERT)    >= 10000                  ~50 bytes
 #define IRMP_SUPPORT_BANG_OLUFSEN_PROTOCOL      0       // Bang & Olufsen       >= 10000                 ~200 bytes
-#define IRMP_SUPPORT_RECS80_PROTOCOL            0       // RECS80 (SAA3004)     >= 15000                  ~50 bytes
+#define IRMP_SUPPORT_RECS80_PROTOCOL            1       // RECS80 (SAA3004)     >= 15000                  ~50 bytes
 #define IRMP_SUPPORT_RECS80EXT_PROTOCOL         0       // RECS80EXT (SAA3008)  >= 15000                  ~50 bytes
 #define IRMP_SUPPORT_THOMSON_PROTOCOL           0       // Thomson              >= 10000                 ~250 bytes
 #define IRMP_SUPPORT_NIKON_PROTOCOL             0       // NIKON camera         >= 10000                 ~250 bytes
 #define IRMP_SUPPORT_NETBOX_PROTOCOL            0       // Netbox keyboard      >= 10000                 ~400 bytes (PROTOTYPE!)
 #define IRMP_SUPPORT_ORTEK_PROTOCOL             0       // ORTEK (Hama)         >= 10000                 ~150 bytes
-#define IRMP_SUPPORT_TELEFUNKEN_PROTOCOL        0       // Telefunken 1560      >= 10000                 ~150 bytes
+#define IRMP_SUPPORT_TELEFUNKEN_PROTOCOL        1       // Telefunken 1560      >= 10000                 ~150 bytes
 #define IRMP_SUPPORT_FDC_PROTOCOL               0       // FDC3402 keyboard     >= 10000 (better 15000)  ~150 bytes (~400 in combination with RC5)
 #define IRMP_SUPPORT_RCCAR_PROTOCOL             0       // RC Car               >= 10000 (better 15000)  ~150 bytes (~500 in combination with RC5)
 #define IRMP_SUPPORT_ROOMBA_PROTOCOL            0       // iRobot Roomba        >= 10000                 ~150 bytes
@@ -149,6 +151,14 @@
 #  define IRMP_BIT_NUMBER                       1
 
 /*---------------------------------------------------------------------------------------------------------------------------------------------------
+ * Change hardware pin here for ESP8266
+ *---------------------------------------------------------------------------------------------------------------------------------------------------
+ */
+#elif defined (__xtensa__) 
+
+# define IRMP_BIT_NUMBER 12
+
+/*---------------------------------------------------------------------------------------------------------------------------------------------------
  * Handling of unknown target system: DON'T CHANGE
  *---------------------------------------------------------------------------------------------------------------------------------------------------
  */
diff -r d2bae762aeeb -r d10a8fc74be8 irmpsystem.h
--- a/irmpsystem.h	Mon Nov 16 23:28:08 2015 +0100
+++ b/irmpsystem.h	Mon Nov 16 23:42:41 2015 +0100
@@ -11,7 +11,6 @@
  * (at your option) any later version.
  *---------------------------------------------------------------------------------------------------------------------------------------------------
  */
-
 #ifndef _IRMPSYSTEM_H_
 #define _IRMPSYSTEM_H_
 
@@ -50,6 +49,14 @@
 #  define F_CPU (SysCtlClockGet())
 #elif defined(unix) || defined(WIN32) || defined(__APPLE__)                         // Unix/Linux or Windows or Apple
 #  define UNIX_OR_WINDOWS
+#elif defined(__xtensa__)
+#include "ets_sys.h"
+#include "osapi.h"
+#include "gpio.h"
+#include "os_type.h"
+#include "c_types.h" 
+#define uint_fast8_t uint8_t
+#define uint_fast16_t uint16_t
 #else
 #  define ATMEL_AVR                                                                 // ATMEL AVR
 #endif
