[riot-notifications] [RIOT-OS/RIOT] cpu/kinetis/rtc: add rtc_set_compensation() (#12280)

Thomas Stilwell notifications at github.com
Fri Sep 20 10:01:33 CEST 2019

There are hacks in [benemorius/RIOT/openlabs](/benemorius/RIOT/commits/openlabs) that facilitate checking the RTC against a good-enough timebase:
* run `gnrc_border_router` example compiled with periph_rtc and sntp
USEMODULE+="periph_rtc sntp" make flash
* use `ntpdate` to set the rtc with an ntp server running on the border router pi
> ntpdate - - -r
using address fe80::1
wrote second 50 at second 49
waited 351563 usecs (wanted 351580 usecs) (error -17 usecs)
* wait hours or days
* use `ntpdate` to set the system time from the ntp server
> ntpdate - - -s
using address fe80::1
2019-09-20 07:51:26 UTC (2677822960 ms) (428 us)
* use `date` to compare the system time to the rtc time
> date
2019-09-20 07:51:45.517515
RTC differs from system time by +0.004336 seconds

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190920/16f6b959/attachment.htm>

More information about the notifications mailing list