feature: allow .bss segment in external memory

This commit is contained in:
TianZhongXing
2018-09-14 18:28:18 +08:00
parent e6e2d7ebee
commit 974112378b
10 changed files with 91 additions and 14 deletions

View File

@@ -39,6 +39,13 @@
// Forces code into RTC fast memory. See "docs/deep-sleep-stub.rst"
#define RTC_IRAM_ATTR __attribute__((section(".rtc.text")))
#if CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY
// Forces bss variable into external memory. "
#define EXT_RAM_ATTR __attribute__((section(".ext_ram.bss")))
#else
#define EXT_RAM_ATTR
#endif
// Forces data into RTC slow memory. See "docs/deep-sleep-stub.rst"
// Any variable marked with this attribute will keep its value
// during a deep sleep / wake cycle.