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:
patacongo
2012-04-16 18:46:07 +00:00
parent e1920cbcb3
commit 55d814ce2d
5 changed files with 235 additions and 23 deletions
+2 -3
View File
@@ -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)
{