📄 clock.h
字号:
/* =====================================================================================
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -