Add STM32 watchdog configuration

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4617 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo
2012-04-16 17:20:36 +00:00
parent c47d8cb7f6
commit e1920cbcb3
55 changed files with 681 additions and 17 deletions
+3 -2
View File
@@ -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 */