summaryrefslogtreecommitdiff
path: root/include/watchdog.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/watchdog.h')
-rw-r--r--include/watchdog.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/include/watchdog.h b/include/watchdog.h
index 46f3b996d7..ca88094e6a 100644
--- a/include/watchdog.h
+++ b/include/watchdog.h
@@ -8,16 +8,15 @@
#ifndef __CROS_EC_WATCHDOG_H
#define __CROS_EC_WATCHDOG_H
-#define WATCHDOG_PERIOD_MS 1100 /* Watchdog period in ms */
+/* Watchdog period in ms; must be at least twice HOOK_TICK_INTERVAL */
+#define WATCHDOG_PERIOD_MS 1100
-/*
- * Interval in ms between reloads of the watchdog timer. Should be less
- * than half of the watchdog period.
+/**
+ * Initialize the watchdog.
+ *
+ * This will cause the CPU to reboot if it has been more than 2 watchdog
+ * periods since watchdog_reload() has been called.
*/
-#define WATCHDOG_RELOAD_MS 500
-
-/* Initialize the watchdog. This will cause the CPU to reboot if it has been
- * more than 2 watchdog periods since watchdog_reload() has been called. */
int watchdog_init(void);
/**