[ion] Power: add a comment to explain why standby use stopConfiguration

on N0100
This commit is contained in:
Émilie Feral
2019-06-19 08:53:17 -04:00
parent db6496baf9
commit d67a1d00a7

View File

@@ -7,6 +7,10 @@ namespace Power {
void standby() {
Device::Power::waitUntilOnOffKeyReleased();
/* N0100 cannot use standby mode because the power key is not correctly wired
* to a wake up pin in order to trigger a wake up event. If the device is in
* standby, we won't be able to wake it up. Instead, we use the stop mode (as
* it is the low power mode consuming less after standby mode). */
Device::Power::stopConfiguration();
Device::Board::shutdownPeripherals();
Device::WakeUp::onOnOffKeyDown();