Added ROM_CONST_ATTR attribute for forcing constants to live in flash.

This commit is contained in:
Robert Foss 2015-09-12 12:07:01 -04:00
parent e2ada487f3
commit 0f883b1842
1 changed files with 1 additions and 0 deletions

View File

@ -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;