[riot-notifications] [RIOT-OS/RIOT] cpu/stm32_common: add watchdog for stm32 (#11252)

benpicco notifications at github.com
Wed Jul 24 14:31:34 CEST 2019


benpicco commented on this pull request.



> @@ -99,6 +99,23 @@ extern "C" {
 #endif
 /** @} */
 
+/**
+ * @name    WDT upper and lower bound times in us
+ * @{
+ */
+/* Actual Lower Limit is ~100us so round up */
+#define NWDT_TIME_LOWER_LIMIT          (1U)
+#define NWDT_TIME_UPPER_LIMIT          (4U * US_PER_MS * 4096U * (1 << 6U) \
+                                        / CLOCK_LSI)
+/* Once enabled wdt can't be stoped*/
+#define HAS_WDT_STOP                   (0U)
+#if defined(CPU_FAM_STM32L4)
+#define HAS_WDT_INIT                   (1U)
+#else
+#define HAS_WDT_STOP                   (0U)

Did you mean `HAS_WDT_INIT `?

-- 
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/11252#pullrequestreview-265985582
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190724/1e407b9b/attachment-0001.htm>


More information about the notifications mailing list