EXPERIMENTAL OTA REFACTOR - release

This commit is contained in:
Sebastien
2019-11-19 22:08:32 -05:00
parent c84722d8e8
commit 676a90ac33
5 changed files with 345 additions and 74 deletions

View File

@@ -9,9 +9,14 @@
#include "esp_attr.h"
#if RECOVERY_APPLICATION
#define CODE_RAM_LOCATION
#define RECOVERY_IRAM_FUNCTION IRAM_ATTR
#else
#define RECOVERY_IRAM_FUNCTION
#define CODE_RAM_LOCATION
#endif
// ERASE BLOCK needs to be a multiple of wear leveling's sector size
#define OTA_FLASH_ERASE_BLOCK (uint32_t)512000
#define OTA_STACK_SIZE 5120