contiki/cpu/cc26xx-cc13xx
George Oikonomou 571cf9364a Improve CC13xx/CC26xx LPM logic
This commit applies a number of improvements to the logic used when trying to drop to a CC13xx/CC26xx low-power mode:

* We identify whether there are any pending etimers by using `etimer_pending()` instead of `etimer_next_expiration_time()`. This subsequently allows us to also identify whether an etimer is set to fire at time 0.
* We run a larger portion of the code with the global interrupt disabled. This prevents a number of messy conditions that can occur if an interrupt fires after we have started the low-power sequence.
* We check whether there are pending events earlier in the sequence.
* We make sure to schedule a next wakeup event even when an LPM module prohibits deep sleep and forces sleep instead.

This fixes some of the issues discussed in #1236
2015-11-14 02:48:46 +01:00
..
2015-08-23 19:54:42 +01:00
2015-09-02 12:05:47 +02:00
2015-08-23 19:54:42 +01:00
2015-08-23 19:54:42 +01:00
2015-08-23 19:54:42 +01:00
2015-08-23 19:54:42 +01:00
2015-11-14 02:48:46 +01:00
2015-08-23 19:54:42 +01:00
2015-08-23 19:54:42 +01:00
2015-08-23 19:54:42 +01:00
2015-08-23 19:54:42 +01:00
2015-08-23 19:54:42 +01:00
2015-08-23 19:54:42 +01:00
2015-08-23 19:54:42 +01:00
2015-08-23 19:54:42 +01:00
2015-08-23 19:54:42 +01:00