summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-10-20 08:24:05 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-10-20 08:24:05 -0600
commit27a52771968ca8c8f6b6b63148232ef0bfd93a79 (patch)
treeb9ce420d0a0e555c5d2fc1cf19bf828edc2b8f02 /apps
parenteb907074ca165d63b0ada5fae28a3e222fcdbddf (diff)
downloadnuttx-27a52771968ca8c8f6b6b63148232ef0bfd93a79.tar.gz
nuttx-27a52771968ca8c8f6b6b63148232ef0bfd93a79.tar.bz2
nuttx-27a52771968ca8c8f6b6b63148232ef0bfd93a79.zip
SAMA5 WDT: Miss watchdog fixes
Diffstat (limited to 'apps')
-rw-r--r--apps/examples/watchdog/watchdog_main.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/examples/watchdog/watchdog_main.c b/apps/examples/watchdog/watchdog_main.c
index 53099d21a..38b4fd241 100644
--- a/apps/examples/watchdog/watchdog_main.c
+++ b/apps/examples/watchdog/watchdog_main.c
@@ -148,7 +148,7 @@ static void parse_args(FAR struct wdog_example_s *wdog, int argc, FAR char **arg
long value;
int index;
int nargs;
-
+
wdog->pingtime = CONFIG_EXAMPLES_WATCHDOG_PINGTIME;
wdog->pingdelay = CONFIG_EXAMPLES_WATCHDOG_PINGDELAY;
wdog->timeout = CONFIG_EXAMPLES_WATCHDOG_TIMEOUT;
@@ -203,7 +203,7 @@ static void parse_args(FAR struct wdog_example_s *wdog, int argc, FAR char **arg
case 'h':
wdog_help();
exit(EXIT_SUCCESS);
-
+
default:
message("Unsupported option: %s\n", ptr);
wdog_help();
@@ -341,6 +341,10 @@ int wdog_main(int argc, char *argv[])
ret = ioctl(fd, WDIOC_STOP, 0);
if (ret < 0)
{
+ /* NOTE: This may not be an error. Some watchdog hardware does not
+ * support stopping the watchdog once it has been started.
+ */
+
message("wdog_main: ioctl(WDIOC_STOP) failed: %d\n", errno);
goto errout_with_dev;
}