bootloader: API for the fast wakeup and custom using RTC mem

Added "Reserve RTC FAST memory for custom purposes" option.
Added a boot counter.
This commit is contained in:
KonstantinKondrashov
2019-07-05 18:18:58 +08:00
committed by bot
parent abffc3b11d
commit c543aac91e
8 changed files with 198 additions and 3 deletions

View File

@@ -21,7 +21,9 @@
#define CONFIG_BT_RESERVE_DRAM 0
#endif
#if defined(CONFIG_BOOTLOADER_SKIP_VALIDATE_IN_DEEP_SLEEP)
#ifdef CONFIG_BOOTLOADER_CUSTOM_RESERVE_RTC
#define ESP_BOOTLOADER_RESERVE_RTC (CONFIG_BOOTLOADER_RESERVE_RTC_SIZE + CONFIG_BOOTLOADER_CUSTOM_RESERVE_RTC_SIZE)
#elif defined(CONFIG_BOOTLOADER_SKIP_VALIDATE_IN_DEEP_SLEEP)
#define ESP_BOOTLOADER_RESERVE_RTC (CONFIG_BOOTLOADER_RESERVE_RTC_SIZE)
#else
#define ESP_BOOTLOADER_RESERVE_RTC 0