ESP Flasher dual boot

This commit is contained in:
Willy-JL
2023-08-31 22:47:40 +02:00
parent d76a324a59
commit 202d988dd5
29 changed files with 197 additions and 95 deletions

View File

@@ -34,11 +34,18 @@ typedef enum SelectedFlashOptions {
SelectedFlashPart,
SelectedFlashNvs,
SelectedFlashBootApp0,
SelectedFlashApp,
SelectedFlashAppA,
SelectedFlashAppB,
SelectedFlashCustom,
NUM_FLASH_OPTIONS
} SelectedFlashOptions;
typedef enum {
SwitchNotSet,
SwitchToFirmwareA,
SwitchToFirmwareB,
} SwitchFirmware;
struct EspFlasherApp {
Gui* gui;
ViewDispatcher* view_dispatcher;
@@ -61,13 +68,16 @@ struct EspFlasherApp {
bool boot;
bool quickflash;
SwitchFirmware switch_fw;
bool selected_flash_options[NUM_FLASH_OPTIONS];
int num_selected_flash_options;
char bin_file_path_boot[100];
char bin_file_path_part[100];
char bin_file_path_nvs[100];
char bin_file_path_boot_app0[100];
char bin_file_path_app[100];
char bin_file_path_app_a[100];
char bin_file_path_app_b[100];
char bin_file_path_custom[100];
FuriThread* flash_worker;
bool flash_worker_busy;