Flash status: scan PICOBIN blocks for per-slot validity and version
This commit is contained in:
@@ -128,12 +128,21 @@ struct RequestFlashStatus {
|
||||
auto as_tuple() { return std::tie(); }
|
||||
};
|
||||
|
||||
struct SlotInfo {
|
||||
bool valid;
|
||||
uint32_t version;
|
||||
bool hash_ok;
|
||||
auto as_tuple() const { return std::tie(valid, version, hash_ok); }
|
||||
auto as_tuple() { return std::tie(valid, version, hash_ok); }
|
||||
};
|
||||
|
||||
struct ResponseFlashStatus {
|
||||
static constexpr int8_t ext_id = 15;
|
||||
int8_t boot_partition;
|
||||
uint8_t boot_type;
|
||||
auto as_tuple() const { return std::tie(boot_partition, boot_type); }
|
||||
auto as_tuple() { return std::tie(boot_partition, boot_type); }
|
||||
SlotInfo slot_a;
|
||||
SlotInfo slot_b;
|
||||
auto as_tuple() const { return std::tie(boot_partition, slot_a, slot_b); }
|
||||
auto as_tuple() { return std::tie(boot_partition, slot_a, slot_b); }
|
||||
};
|
||||
|
||||
struct RequestListTests {
|
||||
|
||||
Reference in New Issue
Block a user