[riot-notifications] [RIOT-OS/RIOT] drivers/include: add header definition for wdt (#11527)

Francisco notifications at github.com
Fri Jun 21 10:46:42 CEST 2019

> configure watchdog behavior during sleep/debug could also be called in init(), it's only needed once.

True, I should not have been only looking for clock configuration. I think you are right, there are multiple things that can be setup only once (clocks, behavior in sleep modes or debug, as you pointed out, etc..). There would still be some platforms that don't use it (but in a way same goes for `wdt_stop()`), but probably will.

> I can also add an `is_initialized` variable if we don't want to do the clock setup multiple times and don't want to have empty init functions on some platforms.

I don't have a technical argument against empty functions (although this can be my own ignorance :) ). 

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/20190621/759c472b/attachment.html>

More information about the notifications mailing list