Startup / shutdown refactoring

This commit is contained in:
Bertrand Songis
2019-08-16 16:12:34 +02:00
parent f7a6d44d1e
commit a611d9e10f
26 changed files with 382 additions and 268 deletions
+9 -5
View File
@@ -458,11 +458,7 @@ uint32_t pwrCheck()
return simu_shutdown ? e_power_off : e_power_on;
}
void pwrOff()
{
}
uint32_t pwrPressed()
bool pwrPressed()
{
// TODO: simulate power button
#if defined(PWR_SWITCH_GPIO) // STM32
@@ -478,6 +474,14 @@ void pwrInit()
{
}
void pwrOn()
{
}
void pwrOff()
{
}
void readKeysAndTrims()
{
uint8_t index = 0;