[riot-notifications] [RIOT-OS/RIOT] cpu/nrf5x: implement wdt peripheral driver (#11556)

benpicco notifications at github.com
Wed Jul 24 14:20:23 CEST 2019


benpicco commented on this pull request.

Needs a rebase now that  #11527 is merged.

> +    DEBUG("[wdt] setting CRV to %"PRIu32"\n", crv);
+    NRF_WDT->CRV = crv;
+
+    DEBUG("[wdt] CRV configuration: %"PRIu32"\n", NRF_WDT->CRV);
+
+    /* Enable reload requests */
+    NRF_WDT->RREN = (WDT_RREN_RR0_Enabled << WDT_RREN_RR0_Pos);
+
+    DEBUG("[wdt] watchdog setup complete\n");
+}
+
+#ifdef MODULE_PERIPH_WDT_CB
+void wdt_setup_callback(uint32_t min_time, uint32_t max_time,
+                        wdt_cb_t cb, void* arg)
+{
+    wdt_cb = cb;

What if `cb == NULL`?

-- 
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/11556#pullrequestreview-265977415
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190724/0cc83750/attachment.htm>


More information about the notifications mailing list