timer.h

来自「基于2410的一个iis总线测试程序 声音控制芯片是飞利浦的UTS1341 」· C头文件 代码 · 共 61 行

H
61
字号
//=====================
//file name: timer.h
//Discription: provide some timer-relative method used by the monitor program
//Author: Decell.Zhou
//Version:
//			0.1|
//=====================

#include <stdlib.h>
#include <string.h>

#include "def.h"
#include "option.h"
#include "config.h"
#include "2410addr.h"
#include "2410lib.h"
#include "2410slib.h"



//============[timerInit]=======
//Discription: this method is used to initial the timer
//Pram: none
//return:none
//version:
//==============================
void timerInit(void);

//============[timerStart]======
//Discription: this method is used to start the timer
//Pram: none
//return: none
//version: none
//==============================
void timerStart(void);

//============[timerStop]======
//Discription: this method is used to stop the timer
//Pram: none
//return: none
//version: none
//==============================
void timerStop(void);


//============[setTimer]========
//Discription: this method is used to setup the timeout count for the timer
//Pram: 
//		int|ms|the time out time is defined in ms
//return:none
//==============================
void setTimer(int second);

//============[timerExpire]=====
//Discription: this method checks to see if the timer has timeout
//Pram: none
//return:
//		0|do not timeout
//		1|has been timeout
//==============================
char timerExpire(void);

⌨️ 快捷键说明

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