[riot-notifications] [RIOT-OS/RIOT] sam0: Implement watchdog driver (#11520)

Francisco notifications at github.com
Fri Sep 13 12:01:40 CEST 2019


> The result is the same on samr21-xpro and same54-xpro.
> This is because the Watchdog only has 4 bits for window and period respectively.
> Only powers of 2 can be configured, so for 5000ms the next power of two (8192/1024Hz = 7938.48 ms) is selected.

Hmm, this could become an issue for other platforms as well..

We could:
- For now just test for power of two values, or
- Print the theoretically configured time for the setup values and compare against that. This could be a DEBUG option and activate it for the test. e.g: https://github.com/RIOT-OS/RIOT/blob/ab8cdace1206aa271c69b4e1ebcc92c4b6817d89/cpu/stm32_common/periph/wdt.c#L50-L55

What do you think?


-- 
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/11520#issuecomment-531178768
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190913/54c382b4/attachment-0001.htm>


More information about the notifications mailing list