📄 timer.h
字号:
/********************************************************************************/
/* SYSREG.H v1.00 */
/* 版权(c) 2003- 北京合众达电子技术有限责任公司 */
/* 设计者: 段立锋 */
/********************************************************************************/
#ifndef _TIMER
#define _TIMER
#include "type.h"
/********************************************************************************/
/* 常量定义 */
/********************************************************************************/
#define LED_PERIOD 0x4e20 /*2秒延时*/
/****************************************************************************/
/* */
/* 函数定义:void _timer_start(uint period) */
/* 功 能:启动定时器 */
/* 入口参数:A ---- 定时周期,单位为毫秒 */
/* 出口参数:无 */
/* 资源使用:A,AR0 */
/* */
/****************************************************************************/
void timer_start(unsigned int period);
/****************************************************************************/
/* */
/* 函数定义:void _timer_stop() */
/* 功 能:停止定时器 */
/* */
/* 入口参数:无 */
/* 出口参数:无 */
/* */
/****************************************************************************/
void timer_stop();
/****************************************************************************/
/* */
/* 函数定义:bool _timer_status() */
/* 功 能:启动定时器 */
/* */
/* 入口参数:无 */
/* 出口参数:A ----定时是否完成 */
/* 未完成: 00H */
/* 完成: 01H */
/* 资源使用:A,AR0 */
/* */
/****************************************************************************/
BOOL timer_status();
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -