mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 03:23:35 +08:00
STM32 WWDG watchdog driver works
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4618 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -60,7 +60,7 @@
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
/* Debug ********************************************************************/
|
||||
/* Non-standard debug that may be enabled just for testing PWM */
|
||||
/* Non-standard debug that may be enabled just for testing the watchdog driver */
|
||||
|
||||
#ifdef CONFIG_DEBUG_WATCHDOG
|
||||
# define wddbg dbg
|
||||
@@ -478,7 +478,7 @@ FAR void *watchdog_register(FAR const char *path,
|
||||
int ret;
|
||||
|
||||
DEBUGASSERT(path && lower);
|
||||
wdvdbg("Registering: %s\n", path);
|
||||
wdvdbg("Entry: path=%s\n", path);
|
||||
|
||||
/* Allocate the upper-half data structure */
|
||||
|
||||
@@ -508,7 +508,6 @@ FAR void *watchdog_register(FAR const char *path,
|
||||
|
||||
/* Register the watchdog timer device */
|
||||
|
||||
wdvdbg("Registering %s\n", path);
|
||||
ret = register_driver(path, &g_wdogops, 0666, upper);
|
||||
if (ret < 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user