From 62fb03e8a5fe25cf15fba1c106d854a0a7cb9b1f Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 16 Apr 2012 17:20:36 +0000 Subject: Add STM32 watchdog configuration git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4617 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/drivers/watchdog.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'nuttx/drivers') 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 */ -- cgit v1.2.3