mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
Gigastar(2): Fix bootloaders steps
This commit is contained in:
committed by
Kyle Schwarz
parent
ebf9409c18
commit
1b00c6a05b
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user