]> cloudbase.mooo.com Git - irmp.git/blobdiff - irmpsystem.h
Version 3.0.7 - added SAMSUNGAH protocol, improved some code for ESP8266
[irmp.git] / irmpsystem.h
index 4cafdd5e75b70858924aca75483ff39be6b89a56..25bacb222731b33b64c129168c2707fe17ae4270 100644 (file)
@@ -3,7 +3,7 @@
  *\r
  * Copyright (c) 2009-2016 Frank Meyer - frank(at)fli4l.de\r
  *\r
- * $Id: irmpsystem.h,v 1.24 2016/09/09 07:53:29 fm Exp $\r
+ * $Id: irmpsystem.h,v 1.25 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
 #elif defined(TARGET_IS_BLIZZARD_RA2)                                               // TI Stellaris (tested on Stellaris Launchpad with Code Composer Studio)\r
 #  define STELLARIS_ARM_CORTEX_M4\r
 #  define F_CPU (SysCtlClockGet())\r
-#elif defined(__xtensa__)\r
+#elif defined(__xtensa__)                                                           // ESP8266 (Arduino)\r
+#  include "Arduino.h"\r
 #  include "ets_sys.h"\r
 #  include "osapi.h"\r
 #  include "gpio.h"\r
 #  include "os_type.h"\r
-#  include "c_types.h" \r
+#  include "c_types.h"\r
 #  define uint_fast8_t uint8_t\r
 #  define uint_fast16_t uint16_t\r
 #elif defined(TEENSYDUINO) && (defined(__MK20DX256__) || defined(__MK20DX128__))    // Teensy 3.x (tested on Teensy 3.1 in Arduino 1.6.5 / Teensyduino 1.2.5)\r
@@ -145,6 +146,10 @@ typedef unsigned short                  uint16_t;
 #  define PROGMEM\r
 #  define memcpy_P                      memcpy\r
 \r
+#elif defined(__xtensa__)\r
+#  define PROGMEM\r
+#  define memcpy_P                      memcpy\r
+\r
 #elif defined(__MBED__)\r
 #  define PROGMEM\r
 #  define memcpy_P                      memcpy\r