Add new "RAM" storage macro for putting constant data in RAM

Also update comments in common_macros.h following #142
This commit is contained in:
Angus Gratton 2016-05-28 12:29:28 +10:00
parent b304f65c21
commit 230aa9fd37
2 changed files with 66 additions and 33 deletions

View file

@ -13,9 +13,9 @@
#define TESTSTRING "O hai there! %d %d %d"
const char *dramtest = TESTSTRING;
const __attribute__((section(".iram1.notrodata"))) char iramtest[] = TESTSTRING;
const __attribute__((section(".text.notrodata"))) char iromtest[] = TESTSTRING;
const RAM char dramtest[] = TESTSTRING;
const char *iromtest = TESTSTRING;
const IRAM_DATA char iramtest[] = TESTSTRING;
static inline uint32_t get_ccount (void)
{