mirror of
https://github.com/nodemcu/nodemcu-firmware.git
synced 2025-01-16 20:52:57 +08:00
Added ROM_CONST_ATTR attribute for forcing constants to live in flash.
This commit is contained in:
parent
e2ada487f3
commit
0f883b1842
@ -86,6 +86,7 @@ typedef enum {
|
|||||||
|
|
||||||
#define TEXT_SECTION_ATTR __attribute__((section(".text")))
|
#define TEXT_SECTION_ATTR __attribute__((section(".text")))
|
||||||
#define RAM_CONST_ATTR __attribute__((section(".rodata")))
|
#define RAM_CONST_ATTR __attribute__((section(".rodata")))
|
||||||
|
#define ROM_CONST_ATTR __attribute__((section("irom0.rodata")))
|
||||||
|
|
||||||
#ifndef __cplusplus
|
#ifndef __cplusplus
|
||||||
typedef unsigned char bool;
|
typedef unsigned char bool;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user