fix(esp8266): Fix warning in port.c by using different section name

This commit is contained in:
Wu Jian Gang
2018-05-31 16:28:18 +08:00
parent 19452fbd21
commit ed329c10dd
2 changed files with 4 additions and 2 deletions

View File

@ -26,10 +26,10 @@
#define ICACHE_RODATA_ATTR
// Forces code into IRAM instead of flash.
#define IRAM_ATTR __attribute__((section(".text")))
#define IRAM_ATTR __attribute__((section(".iram1")))
// Forces data into DRAM instead of flash
#define DRAM_ATTR __attribute__((section(".data")))
#define DRAM_ATTR __attribute__((section(".dram0")))
// Forces data to be 4 bytes aligned
#define WORD_ALIGNED_ATTR __attribute__((aligned(4)))