⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 seqdrv.c

📁 VXWORKS源代码
💻 C
字号:
/* seqDrv.c - sequential timer driver *//* Copyright 1984-1995 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history--------------------01c,01feb95,rhp  mark library man page NOMANUAL (per jdi)01b,17jan94,smb  added documentation01a,10dec93,smb  created*//*DESCRIPTIONThis driver contains the routines used to maintain a sequential timer.In WindView, this driver is used if a timestamp driver is not availableor disabled for the target board. Events are tagged with a sequence numberin the order they occur on the target. When displayed in WindView, theyare spaced equidistantly along the timeline.INCLUDE FILES:SEE ALSO:NOMANUAL*/#include "vxWorks.h"#include "private/seqDrvP.h"/* locals */static int sequence; /* a static variable used to hold the sequence *//********************************************************************************* seqStamp - implements a sequencer.** NOMANUAL*/UINT32 seqStamp (void)    {    sequence++;    return (sequence);    }/********************************************************************************* seqStampLock - implements a sequencer.** NOMANUAL*/UINT32 seqStampLock (void)    {    sequence++;    return (sequence);    }/********************************************************************************* seqEnable - Enable the sequencer** NOMANUAL*/STATUS seqEnable (void)    {    sequence = 0;    return (OK);    }/********************************************************************************* seqDisable - disable the sequencer** NOMANUAL*/STATUS seqDisable (void)    {    return (OK);    }/********************************************************************************* seqConnect - connect to a sequencer.** NOMANUAL*/STATUS seqConnect     (    FUNCPTR dummy,    int dummyArg    )    {    return (OK);    }/********************************************************************************* seqPeriod - period of sequencer.** NOMANUAL*/UINT32 seqPeriod (void)    {    return (0xffffffff);    }/********************************************************************************* seqFreq - frequency of sequencer** NOMANUAL*/UINT32 seqFreq (void)    {    return (1);    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -