squeezelite-ota.h 583 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * squeezelite-ota.h
  3. *
  4. * Created on: 25 sept. 2019
  5. * Author: sle11
  6. */
  7. #pragma once
  8. #include "esp_attr.h"
  9. #if RECOVERY_APPLICATION
  10. #define CODE_RAM_LOCATION
  11. #define RECOVERY_IRAM_FUNCTION IRAM_ATTR
  12. #else
  13. #define RECOVERY_IRAM_FUNCTION
  14. #define CODE_RAM_LOCATION
  15. #endif
  16. // ERASE BLOCK needs to be a multiple of wear leveling's sector size
  17. #define OTA_FLASH_ERASE_BLOCK (uint32_t)512000
  18. #define OTA_STACK_SIZE 5120
  19. #define OTA_TASK_PRIOTITY 6
  20. esp_err_t start_ota(const char * bin_url, bool bFromAppMain);
  21. const char * ota_get_status();
  22. uint8_t ota_get_pct_complete();