summaryrefslogtreecommitdiff
path: root/nuttx/include/wdog.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-01-31 17:59:22 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-01-31 17:59:22 +0000
commit8a99a139ba3683e981c9e71c57f7fce313d92cae (patch)
tree2dfeb694139cc0dbfcbb69bcbaae8ff6ddecbdd3 /nuttx/include/wdog.h
parentb1fd89b2e088a49381c698ef69904124605e81dc (diff)
downloadnuttx-8a99a139ba3683e981c9e71c57f7fce313d92cae.tar.gz
nuttx-8a99a139ba3683e981c9e71c57f7fce313d92cae.tar.bz2
nuttx-8a99a139ba3683e981c9e71c57f7fce313d92cae.zip
Z16F integration changes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@595 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/wdog.h')
-rw-r--r--nuttx/include/wdog.h39
1 files changed, 19 insertions, 20 deletions
diff --git a/nuttx/include/wdog.h b/nuttx/include/wdog.h
index d54c66fed..5056ab4cf 100644
--- a/nuttx/include/wdog.h
+++ b/nuttx/include/wdog.h
@@ -1,7 +1,7 @@
-/************************************************************
+/****************************************************************************
* wdog.h
*
- * Copyright (C) 2007 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007, 2008 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,29 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
- ************************************************************/
+ ****************************************************************************/
#ifndef __WDOG_H
#define __WDOG_H
-/************************************************************
+/****************************************************************************
* Included Files
- ************************************************************/
+ ****************************************************************************/
#include <nuttx/config.h>
#include <sched.h>
-/************************************************************
+/****************************************************************************
* Compilations Switches
- ************************************************************/
+ ****************************************************************************/
-/************************************************************
+/****************************************************************************
* Definitions
- ************************************************************/
+ ****************************************************************************/
-/************************************************************
+/****************************************************************************
* Global Type Declarations
- ************************************************************/
+ ****************************************************************************/
/* The arguments are passed as uint32 values. For systems
* where the sizeof(pointer) < sizeof(uint32), the following
@@ -67,8 +67,8 @@
union wdparm_u
{
- void *pvarg;
- uint32 *dwarg;
+ FAR void *pvarg;
+ FAR uint32 *dwarg;
};
typedef union wdparm_u wdparm_t;
@@ -76,19 +76,19 @@ typedef union wdparm_u wdparm_t;
* watchdog function expires. Up to four parameters may be passed.
*/
-typedef void (*wdentry_t)(int argc, uint32 arg1, ...);
+typedef CODE void (*wdentry_t)(int argc, uint32 arg1, ...);
/* Watchdog 'handle' */
typedef FAR struct wdog_s *WDOG_ID;
-/************************************************************
+/****************************************************************************
* Global Variables
- ************************************************************/
+ ****************************************************************************/
-/************************************************************
+/****************************************************************************
* Global Function Prototypes
- ************************************************************/
+ ****************************************************************************/
#ifdef __cplusplus
#define EXTERN extern "C"
@@ -110,4 +110,3 @@ EXTERN int wd_gettime(WDOG_ID wdog);
#endif
#endif /* _WDOG_H_ */
-