osd-contiki/cpu/cc26xx-cc13xx
George Oikonomou 08fddb6598 Always set a valid time for the next AON RTC CH1 compare event
The AON RTC CH1 event handler aims to schedule the next compare event on the next 512 RTC counter boundary. However, the current calculation of "now" takes place too early within the interrupt handler. In some cases, this results in the next event getting scheduled too soon in the future or on some extreme cases even in the past.

AON RTC compare events cannot happen within 2 SCLK_LF cycles after a clearance (4 RTC ticks in the 16.16 format). Thus, if the next 512 boundary is too soon (5 ticks for margin), we skip it altogether. When this happens, etimers that would have expired on the skipped tick will expire 1 tick later instead. Skipping a tick has no negative impact on our s/w clock counter, since this is always derived directly from the hardware counter.
2015-11-14 02:44:04 +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 Merge pull request #1233 from adamdunkels/pr/26xx-13xx-fixes 2015-11-09 08:33:58 +00: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