1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 14:33:52 +01:00
Marian Buschsieweke a3e7abc2e2
sys/pm: Fix behavior of fallback pm_off() implementation
- pm_off() should prevent other threads from getting executed after it is
  called, as it should turn off the MCU completely according to its doc
    - Previously, the fallback implementation would still allow other threads
      to continue working
    - Simply disabling IRQs and never enabling them again should make sure
      the MCU behaves like it would be completely off
- pm_off() should reduce the power consumption as much as possible
    - Previously, when IRQs came after the call to pm_set_lowest() in the
      fallback implementation of pm_off(), `while(1) {}` got executed at full
      power consumption
    - Just calling `pm_set(0);` in a loop while make sure that lowest power mode
      is restored if the MCU wakes up again.
    - The check if the lowest power mode is available is skipped, as no code
      gets executed afterwards anyway
2020-04-29 12:08:12 +02:00
..
2019-11-23 22:39:07 +01:00
2020-02-07 13:35:25 +01:00
2019-11-23 22:39:40 +01:00
2019-11-23 22:39:37 +01:00
2018-06-11 19:12:02 +02:00
2020-02-20 13:24:14 +01:00
2019-11-23 22:39:37 +01:00
2019-12-05 15:39:24 +01:00
2020-04-07 17:48:39 +02:00
2019-11-23 22:39:37 +01:00
2019-11-23 22:39:38 +01:00
2019-09-09 20:27:16 +02:00
2020-03-09 17:56:34 +01:00
2020-03-12 08:42:59 +01:00
2019-11-23 22:39:38 +01:00
2019-11-23 22:39:07 +01:00
2018-08-24 18:14:03 +02:00
2019-06-05 17:10:26 +02:00
2018-10-03 10:44:14 +02:00
2020-02-11 13:59:59 +01:00
2019-04-12 15:51:15 +02:00
2020-03-04 12:44:02 +01:00