1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #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);
|