summaryrefslogtreecommitdiff
path: root/include/env/phytec/watchdog.env
diff options
context:
space:
mode:
Diffstat (limited to 'include/env/phytec/watchdog.env')
-rw-r--r--include/env/phytec/watchdog.env11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/env/phytec/watchdog.env b/include/env/phytec/watchdog.env
new file mode 100644
index 00000000000..f2e65baf1e9
--- /dev/null
+++ b/include/env/phytec/watchdog.env
@@ -0,0 +1,11 @@
+watchdog_timeout_ms=CONFIG_WATCHDOG_TIMEOUT_MSECS
+start_watchdog=
+ if test ${watchdog_timeout_ms} -gt 0; then;
+ if test -z "${watchdog}"; then;
+ echo No watchdog device set, skipping watchdog start;
+ else;
+ wdt dev ${watchdog};
+ wdt start ${watchdog_timeout_ms};
+ echo Watchdog started, timeout ${watchdog_timeout_ms} ms;
+ fi;
+ fi;