summaryrefslogtreecommitdiffstats
path: root/nuttx/sched/wd_initialize.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/sched/wd_initialize.c')
-rw-r--r--nuttx/sched/wd_initialize.c46
1 files changed, 24 insertions, 22 deletions
diff --git a/nuttx/sched/wd_initialize.c b/nuttx/sched/wd_initialize.c
index a1d943079a..8553582e07 100644
--- a/nuttx/sched/wd_initialize.c
+++ b/nuttx/sched/wd_initialize.c
@@ -1,7 +1,7 @@
-/************************************************************
- * wd_initialize.c
+/************************************************************************
+ * sched/wd_initialize.c
*
- * Copyright (C) 2007 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -14,7 +14,7 @@
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
- * 3. Neither the name Gregory Nutt nor the names of its contributors may be
+ * 3. Neither the name NuttX nor the names of its contributors may be
* used to endorse or promote products derived from this software
* without specific prior written permission.
*
@@ -31,29 +31,31 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
- ************************************************************/
+ ************************************************************************/
-/************************************************************
+/************************************************************************
* Included Files
- ************************************************************/
+ ************************************************************************/
+
+#include <nuttx/config.h>
-#include <sys/types.h>
#include <queue.h>
#include <nuttx/kmalloc.h>
+
#include "os_internal.h"
#include "wd_internal.h"
-/************************************************************
+/************************************************************************
* Definitions
- ************************************************************/
+ ************************************************************************/
-/************************************************************
+/************************************************************************
* Private Type Declarations
- ************************************************************/
+ ************************************************************************/
-/************************************************************
+/************************************************************************
* Global Variables
- ************************************************************/
+ ************************************************************************/
/* The g_wdfreelist data structure is a singly linked list
* of watchdogs available to the system for delayed function
@@ -77,19 +79,19 @@ FAR wdog_t *g_wdpool;
sq_queue_t g_wdactivelist;
-/************************************************************
+/************************************************************************
* Private Variables
- ************************************************************/
+ ************************************************************************/
-/************************************************************
+/************************************************************************
* Private Functions
- ************************************************************/
+ ************************************************************************/
-/************************************************************
+/************************************************************************
* Public Functions
- ************************************************************/
+ ************************************************************************/
-/************************************************************
+/************************************************************************
* Function: wd_initialize
*
* Description:
@@ -106,7 +108,7 @@ sq_queue_t g_wdactivelist;
* sequence before the timer interrupt is attached and
* before any watchdog services are used.
*
- ************************************************************/
+ ************************************************************************/
void wd_initialize(void)
{