esp_flasher_worker.h 867 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include "esp_flasher_app_i.h"
  3. #include "esp_flasher_uart.h"
  4. #ifndef SERIAL_FLASHER_INTERFACE_UART
  5. #define SERIAL_FLASHER_INTERFACE_UART /* TODO why is application.fam not passing this via cdefines */
  6. #endif
  7. #define SERIAL_FLASHER_RESET_HOLD_TIME_MS 100
  8. #define SERIAL_FLASHER_BOOT_HOLD_TIME_MS 50
  9. #include "esp_loader_io.h"
  10. #define ESP_ADDR_BOOT_S3 0x0
  11. #define ESP_ADDR_BOOT 0x1000
  12. #define ESP_ADDR_PART 0x8000
  13. #define ESP_ADDR_NVS 0x9000
  14. #define ESP_ADDR_BOOT_APP0 0xE000
  15. #define ESP_ADDR_APP_A 0x10000
  16. #define ESP_ADDR_APP_B 0x150000
  17. #define ESP_ADDR_OTADATA_OFFSET_APP_A 0x0
  18. #define ESP_ADDR_OTADATA_OFFSET_APP_B 0x1000
  19. void esp_flasher_worker_start_thread(EspFlasherApp* app);
  20. void esp_flasher_worker_stop_thread(EspFlasherApp* app);
  21. void esp_flasher_worker_handle_rx_data_cb(uint8_t* buf, size_t len, void* context);