osd-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
..
dev Always set a valid time for the next AON RTC CH1 compare event 2015-11-14 02:44:04 +01:00
lib Update CCxxwares to our warning-free version 2015-10-20 10:11:41 +02:00
rf-core Merge pull request #1233 from adamdunkels/pr/26xx-13xx-fixes 2015-11-09 08:33:58 +00:00
cc26xx.ld Add support for the CC13xx CPU 2015-08-23 19:54:42 +01:00
clock.c Tickless bugfixes: 2015-09-02 12:05:47 +02:00
dbg.h Add support for the CC13xx CPU 2015-08-23 19:54:42 +01:00
debug-uart.h Add support for the CC13xx CPU 2015-08-23 19:54:42 +01:00
fault-handlers.c Add support for the CC13xx CPU 2015-08-23 19:54:42 +01:00
ieee-addr.c Add support for the CC13xx CPU 2015-08-23 19:54:42 +01:00
ieee-addr.h Add support for the CC13xx CPU 2015-08-23 19:54:42 +01:00
lpm.c Improve CC13xx/CC26xx LPM logic 2015-11-14 02:48:46 +01:00
lpm.h Add support for the CC13xx CPU 2015-08-23 19:54:42 +01:00
Makefile.cc13xx Add support for the CC13xx CPU 2015-08-23 19:54:42 +01:00
Makefile.cc26xx Add support for the CC13xx CPU 2015-08-23 19:54:42 +01:00
Makefile.cc26xx-cc13xx Added the WERROR=1 flag to the CC2538 and CC26xx CPUs 2015-10-20 10:11:23 +02:00
mtarch.h Add support for the CC13xx CPU 2015-08-23 19:54:42 +01:00
putchar.c Add support for the CC13xx CPU 2015-08-23 19:54:42 +01:00
rtimer-arch.c Add support for the CC13xx CPU 2015-08-23 19:54:42 +01:00
rtimer-arch.h Add support for the CC13xx CPU 2015-08-23 19:54:42 +01:00
slip-arch.c Add support for the CC13xx CPU 2015-08-23 19:54:42 +01:00
ti-lib.h Add support for the CC13xx CPU 2015-08-23 19:54:42 +01:00