This commit is contained in:
parent
90b7f069dc
commit
c3b6b0a7ee
@ -219,18 +219,14 @@ void PlocMpsocHandler::doStartUp() {
|
|||||||
void PlocMpsocHandler::doShutDown() {
|
void PlocMpsocHandler::doShutDown() {
|
||||||
#ifdef XIPHOS_Q7S
|
#ifdef XIPHOS_Q7S
|
||||||
#if not OBSW_MPSOC_JTAG_BOOT == 1
|
#if not OBSW_MPSOC_JTAG_BOOT == 1
|
||||||
switch (powerState) {
|
if (powerState == PowerState::ON) {
|
||||||
case PowerState::ON:
|
uartIsolatorSwitch.pullLow();
|
||||||
uartIsolatorSwitch.pullLow();
|
commandActionHelper.commandAction(supervisorHandler, supv::SHUTDOWN_MPSOC);
|
||||||
commandActionHelper.commandAction(supervisorHandler, supv::SHUTDOWN_MPSOC);
|
powerState = PowerState::SHUTDOWN;
|
||||||
powerState = PowerState::SHUTDOWN;
|
return;
|
||||||
return;
|
} else if (powerState == PowerState::SHUTDOWN) {
|
||||||
case PowerState::OFF:
|
// Wait till power state is OFF.
|
||||||
hkReport.setReportingEnabled(false);
|
return;
|
||||||
setMode(_MODE_POWER_DOWN);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
uartIsolatorSwitch.pullLow();
|
uartIsolatorSwitch.pullLow();
|
||||||
|
Loading…
Reference in New Issue
Block a user