wdLibP.h
资源名称:ixp425BSP.rar [点击查看]
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:2k
源码类别:
VxWorks
开发平台:
C/C++
- /* wdLibP.h - private watchdog timer library header */
- /* Copyright 1984-1992 Wind River Systems, Inc. */
- /*
- modification history
- --------------------
- 01c,16jan94,c_s added extern declaration for wdInstClassId.
- 01b,22sep92,rrr added support for c++
- 01a,04jul92,jcf created from v01h wdLib.h.
- */
- #ifndef __INCwdLibPh
- #define __INCwdLibPh
- #ifdef __cplusplus
- extern "C" {
- #endif
- #include "vxWorks.h"
- #include "wdLib.h"
- #include "classLib.h"
- #include "qLib.h"
- #include "private/objLibP.h"
- /* watchdog status values */
- #define WDOG_OUT_OF_Q 0x0 /* valid watchdog not in tick queue */
- #define WDOG_IN_Q 0x1 /* valid watchdog in tick queue */
- #define WDOG_DEAD 0x2 /* terminated watchdog */
- typedef struct wdog /* WDOG */
- {
- OBJ_CORE objCore; /* object management */
- Q_NODE tickNode; /* multi-way queue node for tick queue */
- USHORT status; /* status of watchdog */
- USHORT deferStartCnt; /* number of wdStarts still in work queue */
- FUNCPTR wdRoutine; /* routine to call upon expiration */
- int wdParameter; /* arbitrary parameter to routine */
- } WDOG;
- /* variable definitions */
- extern CLASS_ID wdClassId; /* watchdog class id */
- extern CLASS_ID wdInstClassId; /* watchdog instrumented class id */
- /* function declarations */
- #if defined(__STDC__) || defined(__cplusplus)
- extern STATUS wdInit (WDOG *pWdog);
- extern STATUS wdTerminate (WDOG_ID wdId);
- extern STATUS wdDestroy (WDOG_ID wdId, BOOL dealloc);
- extern void wdTick (void);
- #else /* __STDC__ */
- extern STATUS wdInit ();
- extern STATUS wdTerminate ();
- extern STATUS wdDestroy ();
- extern void wdTick ();
- #endif /* __STDC__ */
- #ifdef __cplusplus
- }
- #endif
- #endif /* __INCwdLibPh */