clock.h
来自「基于2812dsp/BOIS实时操作系统,通用软件平台」· C头文件 代码 · 共 42 行
H
42 行
/* =====================================================================================
File name: clock.h
Originator: newimage R&D
Description:
Headfile of clock.c,System used data structure.
=====================================================================================
History:
-------------------------------------------------------------------------------------
04-11-2006 Release Rev 0.1
-----------------------------------------------------------------------------------*/
#define CLOCK_NUM 10 //run cycles per milsecend
/* change "int" to "long" or "float" according to variable type */
typedef struct {
int milsecend;
int secend;
int minute;
int hour;
int tick;
void (*update)(); /* Pointer to update function */
} CLOCK;
/*-----------------------------------------------------------------------------
Default initalizer for the DATALOG object.
-----------------------------------------------------------------------------*/
#define CLOCK_DEFAULTS { 0, \
0, \
0, \
0, \
0, \
(void (*)(long))clock_update }
/*------------------------------------------------------------------------------
Prototypes for the functions in DATA_LOG.C
------------------------------------------------------------------------------*/
void clock_update(CLOCK *);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?