Commit 0f883b18 authored by Robert Foss's avatar Robert Foss
Browse files

Added ROM_CONST_ATTR attribute for forcing constants to live in flash.

parent e2ada487
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment