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

Kaspar Schleiser notifications at github.com
Wed May 15 16:05:14 CEST 2019


kaspar030 commented on this pull request.



> + */
+void wdt_stop(void);
+
+/**
+ * @brief    Reset the watchdog timer counter, delay system reset
+ */
+void wdt_kick(void);
+
+/**
+ * @brief    Set up the wdt timer, only use max_time if normal operation
+ *           set min_time and max_time for windowed timer.
+ *
+ * @param[in] min_time       lower bound for windowed watchdog in us
+ * @param[in] max_time       upper bound for windowed watchdog in us, time before
+ *                           reset for normal watchdog
+ * @param[in] wdt_cb         wdt callback

we could define the early warning interrupt in a way that all platforms support (e.g., it'll be triggered but cannot reset the watchdog), and emulate it using xtimer for platforms not supporting it...

Anyhow, I suggest we go with only ```wdt_setup_reset()``` for now. It'll be ok for 90% of the users, and we can extend the API later. 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/11527#discussion_r284272717
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190515/2dc78eb5/attachment.html>


More information about the notifications mailing list