mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-03 00:31:36 +08:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user