12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #pragma once
- #include "esp_attr.h"
- #include "esp_image_format.h"
- #include "esp_ota_ops.h"
- #include "sys/param.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, char * bin_buffer, uint32_t length);
- const char * ota_get_status();
- uint8_t ota_get_pct_complete();
|