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

📄 intimers.h

📁 在ARM7和UC/OSII的平台上实现了GPS自动报站的功能,涉及GPS模块LEA_4S的驱动,位置速寻算法,语音芯片ISD4004的录放音驱动,LED页面管理等等.从启动代码到操作系统的移植以及到业
💻 H
字号:
/*
 * FILENAME: intimers.c
 *
 * Copyright  2001 By InterNiche Technologies Inc. All rights reserved
 *
 * Handles InterNiche task & application interval timers.
 *
 * MODULE: MISCLIB
 *
 * PORTABLE: yes
 */

#ifndef _INTIMERS_H
#define _INTIMERS_H  1

/* interval timer structure */
struct intimer
{
   void     (*callback)(long parm);
   long     parm;
   u_long   interval;   /* fire interval, in TPS units */
   u_long   tmo;        /* ctick to fire */
};

/* MAX number of interval timers in the system */
#ifndef NUM_INTIMERS       /* Allow override from ipport.h */
#define NUM_INTIMERS 5
#endif

extern struct intimer intimers[NUM_INTIMERS];   /* the timers */

/* entry points to interval timer package */
long  in_timerset(void (*callback)(long), long msecs, long parm);
int   in_timerkill(long timer);

#endif /* _INTIMERS_H */



⌨️ 快捷键说明

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