From 0f883b1842e9d24ccb2345ec4fb19d000f76275c Mon Sep 17 00:00:00 2001 From: Robert Foss Date: Sat, 12 Sep 2015 12:07:01 -0400 Subject: [PATCH] Added ROM_CONST_ATTR attribute for forcing constants to live in flash. --- include/c_types.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/c_types.h b/include/c_types.h index 36ef6d12..ec0ce554 100644 --- a/include/c_types.h +++ b/include/c_types.h @@ -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;