[EGD-8131] Add Reboot/Poweroff for _platform_exit()

Add support for Reboot and Power off for the
_platform_exit code.

Add _platform_exit mode handle

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
This commit is contained in:
Lucjan Bryndza
2021-12-22 15:04:59 +01:00
committed by Lucjan Bryndza
parent 6142f6670b
commit e9ee2af0dc
7 changed files with 74 additions and 8 deletions

View File

@@ -182,10 +182,12 @@ namespace sys
systemDeinit();
}
// Power off request (pending)
PowerOff();
// End of scheduler and back to the main and poweroff
EndScheduler();
// Power off system
PowerOff();
}
void SystemManagerCommon::initialize()