delay.h

来自「西安明朗公司开发板ML-F020ICB的全部测试代码」· C头文件 代码 · 共 104 行

H
104
字号
/************************************************************************************
*  Copyright (c), 2004-2007,西安铭朗电子科技有限责任公司
*            All rights reserved.
*
* Http:  www.mlarm.com
* Email: mlarm@mlarm.com
*
* File name: delay.h
* Project  : ML-F020ICB
* Processor: C8051F020
* Compiler : Keil C51 Compiler
* 
* Author:  李林利
* Version: 1.20
* Date:    2007.6.1
* Email:   GavinLi@126.com
* 
* Description: 本文件是软件延时程序头文件;
*
* Others: none;
*
* Function List:
*	1. void Delay_us(unsigned int times)			
*   2. void Delay_ms(unsigned int times)
*	3. void Delay_s(unsigned int times)
*
* History:
*   1. Author:       李林利  
*	   Version: 	 1.10
*	   Date:         2007.3.12
*      Modification: none
*
*   2. Author:       李林利   
*	   Version: 	 1.00
*      Date:         2004.11.24
*      Modification: 建立文件
*
*************************************************************************************/
/*************************************************************************************
* 						软件延时函数使用说明
*
*	 软件延时函数可以任意调用,应用细节详见具体函数说明;
*
*************************************************************************************/

/*************************************************************************************
* 常量及全局变量定义
*************************************************************************************/

/*************************************************************************************/
//
// 							 软件延时函数外部引用声明
//
/*************************************************************************************/

/***********************************************************************************
* Function: Delay_us;
*
* Description: 延时程序, 延时时间范围: 0~65535us;
*
* Input:  times, 延时时间变量;
*
* Output: none;
*
* Return: none;
*
* Note:   延时时间最大是65535us;
************************************************************************************/
void Delay_us(unsigned int times);

/***********************************************************************************
* Function: Delay_ms;
*
* Description: 延时程序, 延时时间范围: 0~65535ms;
*              
* Input:  times, 延时时间变量;
*
* Output: none;
*
* Return: none;
*
* Note:   延时时间最大是65535ms; 本函数自动检测看门狗,并实时清除;
************************************************************************************/
void Delay_ms(unsigned int times);

/***********************************************************************************
* Function: Delay_s;
*
* Description: 延时程序, 延时时间范围: 0~65535s;
*              
* Input:  times, 延时时间变量;
*
* Output: none;
*
* Return: none;
*
* Note:   延时时间最大是65535s;本函数自动检测看门狗,并实时清除;
************************************************************************************/
void Delay_s(unsigned int times);

/***********************************************************************************/
// 文件结束
/***********************************************************************************/

⌨️ 快捷键说明

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