diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-04-16 17:20:36 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-04-16 17:20:36 +0000 |
commit | 62fb03e8a5fe25cf15fba1c106d854a0a7cb9b1f (patch) | |
tree | 20dbb76bb0ec35303c2a9267d60c872c5c867f0d /nuttx/drivers/watchdog.c | |
parent | 103151bb4289ed721e1beede1fb057b6b7bbc9cc (diff) | |
download | nuttx-62fb03e8a5fe25cf15fba1c106d854a0a7cb9b1f.tar.gz nuttx-62fb03e8a5fe25cf15fba1c106d854a0a7cb9b1f.tar.bz2 nuttx-62fb03e8a5fe25cf15fba1c106d854a0a7cb9b1f.zip |
Add STM32 watchdog configuration
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4617 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/watchdog.c')
-rw-r--r-- | nuttx/drivers/watchdog.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nuttx/drivers/watchdog.c b/nuttx/drivers/watchdog.c index 2f2f22ce6..d7ee30365 100644 --- a/nuttx/drivers/watchdog.c +++ b/nuttx/drivers/watchdog.c @@ -478,6 +478,7 @@ FAR void *watchdog_register(FAR const char *path, int ret; DEBUGASSERT(path && lower); + wdvdbg("Registering: %s\n", path); /* Allocate the upper-half data structure */ @@ -548,14 +549,14 @@ void watchdog_unregister(FAR void *handle) FAR struct watchdog_upperhalf_s *upper; FAR struct watchdog_lowerhalf_s *lower; - wdvdbg("cmd: %d arg: %ld\n", cmd, arg); - /* Recover the pointer to the upper-half driver state */ upper = (FAR struct watchdog_upperhalf_s *)handle; lower = upper->lower; DEBUGASSERT(upper && lower); + wdvdbg("Unregistering: %s\n", upper->path); + /* Disable the watchdog timer */ DEBUGASSERT(lower->ops->stop); /* Required */ |