Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
0f883b18
Commit
0f883b18
authored
Sep 12, 2015
by
Robert Foss
Browse files
Added ROM_CONST_ATTR attribute for forcing constants to live in flash.
parent
e2ada487
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/c_types.h
View file @
0f883b18
...
...
@@ -86,6 +86,7 @@ typedef enum {
#define TEXT_SECTION_ATTR __attribute__((section(".text")))
#define RAM_CONST_ATTR __attribute__((section(".rodata")))
#define ROM_CONST_ATTR __attribute__((section("irom0.rodata")))
#ifndef __cplusplus
typedef
unsigned
char
bool
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment