deep sleep: keep RTC_SLOW_MEM powered on if data is placed into RTC slow memory

This commit is contained in:
Ivan Grokhotkov
2017-01-11 17:23:23 +08:00
parent e4811216ff
commit 9aa0e29079
4 changed files with 17 additions and 7 deletions

View File

@@ -26,7 +26,7 @@
// Forces data into DRAM instead of flash
#define DRAM_ATTR __attribute__((section(".dram1")))
// Forces a string into DRAM instrad of flash
// Forces a string into DRAM instead of flash
// Use as ets_printf(DRAM_STR("Hello world!\n"));
#define DRAM_STR(str) (__extension__({static const DRAM_ATTR char __c[] = (str); (const char *)&__c;}))