Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion include/depthai-bootloader-shared/Bootloader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ namespace request {
// Common
Command cmd;
UsbRomBoot() : cmd(USB_ROM_BOOT) {}

// Data
bool keepUsbBootAfterAppRestart = false;
};
struct BootApplication {
// Common
Expand All @@ -36,8 +39,12 @@ namespace request {
UpdateFlash() : cmd(UPDATE_FLASH) {}

// Data
enum Storage : uint32_t { SBR, BOOTLOADER };
enum Storage : uint32_t { SBR, BOOTLOADER, BOOT_HEADER };
// TODO make BOOT_HEADER and BOOTLOADER storage not overlap.
// Then we could have separate actions to update BOOT_HEADER only.
enum BootHeader : uint32_t { CUSTOM_PAYLOAD, USB, /* FLASH_SPI_QUAD, */ };
Storage storage;
BootHeader bootHeader;
uint32_t totalSize;
uint32_t numPackets;
};
Expand Down