Gigastar(2): Fix bootloaders steps

This commit is contained in:
Yasser Yassine
2025-10-30 14:37:12 -04:00
committed by Kyle Schwarz
parent ebf9409c18
commit 1b00c6a05b
3 changed files with 38 additions and 1 deletions
+12 -1
View File
@@ -28,7 +28,8 @@ struct BootloaderPhase {
Finalize,
Reconnect,
EnterBootloader,
Wait
Wait,
EnterApplication
};
virtual Type getType() const = 0;
@@ -70,6 +71,16 @@ struct EnterBootloaderPhase : public BootloaderPhase {
}
};
struct EnterApplicationPhase : public BootloaderPhase {
Type getType() const override {
return Type::EnterApplication;
}
ChipID chip;
EnterApplicationPhase(ChipID chip) : chip(chip) {}
};
struct FlashPhase : public BootloaderPhase {
Type getType() const override {
return Type::Flash;