2
0

recovery.c 884 B

123456789101112131415161718192021222324252627282930313233343536
  1. #include <stdio.h>
  2. #include <string.h>
  3. #include "esp_err.h"
  4. #include "esp_app_format.h"
  5. extern esp_err_t process_recovery_ota(const char * bin_url, char * bin_buffer, uint32_t length);
  6. const __attribute__((section(".rodata_desc"))) esp_app_desc_t esp_app_desc = {
  7. .magic_word = ESP_APP_DESC_MAGIC_WORD,
  8. .version = PROJECT_VER,
  9. .project_name = PROJECT_NAME,
  10. .idf_ver = IDF_VER,
  11. #ifdef CONFIG_BOOTLOADER_APP_SECURE_VERSION
  12. .secure_version = CONFIG_BOOTLOADER_APP_SECURE_VERSION,
  13. #else
  14. .secure_version = 0,
  15. #endif
  16. #ifdef CONFIG_APP_COMPILE_TIME_DATE
  17. .time = __TIME__,
  18. .date = __DATE__,
  19. #else
  20. .time = "",
  21. .date = "",
  22. #endif
  23. };
  24. int main(int argc, char **argv){
  25. return 1;
  26. }
  27. void register_squeezelite(){
  28. }
  29. esp_err_t start_ota(const char * bin_url, char * bin_buffer, uint32_t length)
  30. {
  31. return process_recovery_ota(bin_url,bin_buffer,length);
  32. }