squeezelite-ota.h 508 B

1234567891011121314151617181920212223
  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. #else
  12. #define CODE_RAM_LOCATION
  13. #endif
  14. // ERASE BLOCK needs to be a multiple of wear leveling's sector size
  15. #define OTA_FLASH_ERASE_BLOCK (uint32_t)512000
  16. #define OTA_STACK_SIZE 5120
  17. #define OTA_TASK_PRIOTITY 6
  18. esp_err_t start_ota(const char * bin_url, bool bFromAppMain);
  19. const char * ota_get_status();
  20. uint8_t ota_get_pct_complete();