From 8d7546ad8095a82595c84541fa29d3c2ec3cea62 Mon Sep 17 00:00:00 2001 From: copercini Date: Sun, 22 Oct 2017 12:15:33 -0200 Subject: [PATCH] Add ICACHE_RAM_ATTR compatibility macro with esp8266 This help the ESP8266 libraries to run on ESP32 --- cores/esp32/esp32-hal.h | 1 + 1 file changed, 1 insertion(+) diff --git a/cores/esp32/esp32-hal.h b/cores/esp32/esp32-hal.h index d6e5ca8ca65..3d7b2bc8c66 100644 --- a/cores/esp32/esp32-hal.h +++ b/cores/esp32/esp32-hal.h @@ -45,6 +45,7 @@ void yield(void); #define ESP_REG(addr) *((volatile uint32_t *)(addr)) #define NOP() asm volatile ("nop") +#define ICACHE_RAM_ATTR IRAM_ATTR #include "esp32-hal-log.h" #include "esp32-hal-matrix.h"