[riot-notifications] [RIOT-OS/RIOT] cpu/kinetis/rtt: clear TPR when writing TSR (#10764)

Peter Kietzmann notifications at github.com
Wed Jan 23 14:23:57 CET 2019


I've tested *tests/periph_rtc* with #10763 repeatedly on a phytec pba-d-01-kw2x always with similar outcome:

**w/o this fix:**
```
# [28888] First alarm expected at 2018102 microseconds
# [1256147] Alarm! after 1238045 microseconds (error -761955 microseconds)
# [3256052] Alarm! after 3237950 microseconds (error -762050 microseconds)
# [5255957] Alarm! after 5237855 microseconds (error -762145 microseconds)
# [7255861] Alarm! after 7237759 microseconds (error -762241 microseconds)
```

**w/ fix:**
```
# [2018020] Alarm! after 1999919 microseconds (error -81 microseconds)
# [4017924] Alarm! after 3999823 microseconds (error -177 microseconds)
# [6017828] Alarm! after 5999727 microseconds (error -273 microseconds)
# [8017732] Alarm! after 7999631 microseconds (error -369 microseconds)
```

**without** this fix there is a big (erroneous) offset which varied from 10 - 80 ms (not us!). With this PR the offset was always around 100us.  

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/10764#issuecomment-456799709
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190123/fc58e19a/attachment.html>


More information about the notifications mailing list