?? delay.h
字號:
/************************************************************************************
* 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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -