I2C reboot procedure for EIVE system #578
@ -191,14 +191,12 @@ void EiveSystem::i2cRecoveryLogic() {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case (I2cRebootState::SYSTEM_MODE_BOOT): {
|
case (I2cRebootState::SYSTEM_MODE_BOOT): {
|
||||||
sif::debug << "going to boot mode" << std::endl;
|
|
||||||
startTransition(satsystem::Mode::BOOT, 0);
|
startTransition(satsystem::Mode::BOOT, 0);
|
||||||
i2cRebootState = I2cRebootState::SWITCH_3V3_STACK_OFF_AND_BATT_REBOOT;
|
i2cRebootState = I2cRebootState::SWITCH_3V3_STACK_OFF_AND_BATT_REBOOT;
|
||||||
i2cRebootHandlingCountdown.resetTimer();
|
i2cRebootHandlingCountdown.resetTimer();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case (I2cRebootState::SWITCH_3V3_STACK_OFF_AND_BATT_REBOOT): {
|
case (I2cRebootState::SWITCH_3V3_STACK_OFF_AND_BATT_REBOOT): {
|
||||||
sif::debug << "3v3 stack off and batt reboot" << std::endl;
|
|
||||||
if (mode == satsystem::Mode::BOOT) {
|
if (mode == satsystem::Mode::BOOT) {
|
||||||
result = powerSwitcher->sendSwitchCommand(power::Switches::P60_DOCK_3V3_STACK,
|
result = powerSwitcher->sendSwitchCommand(power::Switches::P60_DOCK_3V3_STACK,
|
||||||
PowerSwitchIF::SWITCH_OFF);
|
PowerSwitchIF::SWITCH_OFF);
|
||||||
@ -225,7 +223,6 @@ void EiveSystem::i2cRecoveryLogic() {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case (I2cRebootState::SWITCH_3V3_STACK_ON): {
|
case (I2cRebootState::SWITCH_3V3_STACK_ON): {
|
||||||
sif::debug << "3v3 stack on" << std::endl;
|
|
||||||
result = powerSwitcher->sendSwitchCommand(power::Switches::P60_DOCK_3V3_STACK,
|
result = powerSwitcher->sendSwitchCommand(power::Switches::P60_DOCK_3V3_STACK,
|
||||||
PowerSwitchIF::SWITCH_ON);
|
PowerSwitchIF::SWITCH_ON);
|
||||||
if (result != returnvalue::OK) {
|
if (result != returnvalue::OK) {
|
||||||
@ -241,7 +238,6 @@ void EiveSystem::i2cRecoveryLogic() {
|
|||||||
PowerSwitchIF::SWITCH_ON) {
|
PowerSwitchIF::SWITCH_ON) {
|
||||||
// This should always be accepted
|
// This should always be accepted
|
||||||
commonI2cRecoverySequenceFinish();
|
commonI2cRecoverySequenceFinish();
|
||||||
sif::debug << "going back to safe" << std::endl;
|
|
||||||
actionHelper.finish(true, actionCommandedBy, EXECUTE_I2C_REBOOT);
|
actionHelper.finish(true, actionCommandedBy, EXECUTE_I2C_REBOOT);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user