osd-contiki/cpu
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
..
6502 Removed CC_FASTCALL. 2015-11-01 18:10:17 +01:00
arm doxygen: Fix some warnings 2015-06-20 03:22:31 +02:00
avr Remove commented-out code 2015-10-20 10:11:47 +02:00
cc26xx-cc13xx Always set a valid time for the next AON RTC CH1 compare event 2015-11-14 02:44:04 +01:00
cc253x Removed CC_FASTCALL. 2015-11-01 18:10:17 +01:00
cc2430 Removed CC_FASTCALL. 2015-11-01 18:10:17 +01:00
cc2538 Merge pull request #1293 from simonduq/pr/fix-warnings 2015-11-10 08:49:11 +01:00
mc1322x Merge pull request #685 from SmallLars/mc1322x 2015-09-13 12:35:53 -05:00
msp430 Merge pull request #1293 from simonduq/pr/fix-warnings 2015-11-10 08:49:11 +01:00
native Merge pull request #1293 from simonduq/pr/fix-warnings 2015-11-10 08:49:11 +01:00
pic32 [cpu/pic32] Removed excess end group 2014-11-10 23:53:33 +01:00
rl78 The -pedantic and -stdc flags trigger a few too many warnings 2015-10-20 10:11:35 +02:00
stm32w108 mbxxx: added missing undefs 2015-10-20 09:37:28 +02:00
x86 A massive all-tree automated update of all double inclusion guard #defines that changes from using two underscores as a prefix, which are reserved, to not using two underscores as a prefix 2013-11-24 20:20:11 +01:00