123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #pragma once
- #include "esp_attr.h"
- #include "esp_image_format.h"
- #include "esp_ota_ops.h"
- #if RECOVERY_APPLICATION
- #define CODE_RAM_LOCATION
- #define RECOVERY_IRAM_FUNCTION IRAM_ATTR
- #else
- #define RECOVERY_IRAM_FUNCTION
- #define CODE_RAM_LOCATION
- #endif
- #define OTA_FLASH_ERASE_BLOCK (uint32_t)249856
- #define OTA_STACK_SIZE 10240
- #define OTA_TASK_PRIOTITY 6
- esp_err_t start_ota(const char * bin_url);
- const char * ota_get_status();
- uint8_t ota_get_pct_complete();
|