From 073c89deb6cb580db86de613df57dc513871028c Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Sat, 8 Apr 2017 21:34:52 -0700 Subject: [PATCH] Fix RAM Attribute (#169) --- src/internal/NeoEspBitBangMethod.h | 4 ++-- src/internal/NeoPixelEsp.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/internal/NeoEspBitBangMethod.h b/src/internal/NeoEspBitBangMethod.h index 96a8a3f..6f5a8a8 100644 --- a/src/internal/NeoEspBitBangMethod.h +++ b/src/internal/NeoEspBitBangMethod.h @@ -28,9 +28,9 @@ License along with NeoPixel. If not, see #if defined(ARDUINO_ARCH_ESP8266) || defined(ARDUINO_ARCH_ESP32) -// ESP32 doesn't use ICACHE_RAM_ATTR +// ESP32 doesn't define ICACHE_RAM_ATTR #ifndef ICACHE_RAM_ATTR -#define ICACHE_RAM_ATTR +#define ICACHE_RAM_ATTR IRAM_ATTR #endif // for esp8266, due to linker overriding the ICACHE_RAM_ATTR for cpp files, these methods are diff --git a/src/internal/NeoPixelEsp.c b/src/internal/NeoPixelEsp.c index 2296e36..52415ff 100644 --- a/src/internal/NeoPixelEsp.c +++ b/src/internal/NeoPixelEsp.c @@ -31,9 +31,9 @@ License along with NeoPixel. If not, see #include #endif -// ESP32 doesn't use ICACHE_RAM_ATTR +// ESP32 doesn't define ICACHE_RAM_ATTR #ifndef ICACHE_RAM_ATTR -#define ICACHE_RAM_ATTR +#define ICACHE_RAM_ATTR IRAM_ATTR #endif inline uint32_t _getCycleCount()