📄 delay.c
字号:
//===================================================================================
//
// DELAY.C
// Author: Duran Liu
// Date: 06\12\03
// Version: 1.0
// Copyright: AUO
//===================================================================================
#include "include.h"
void Delay1ms(void)
{
BYTE i,j;
for(i=0;i<7;i++)
{
for(j=0;j<84;j++)
{}
}
}
void Delay3us(void)
{
_nop_();
_nop_();
_nop_();
}
void Delay4us(void)
{
_nop_();
_nop_();
_nop_();
_nop_();
}
void Delay5us(void)
{
_nop_();
_nop_();
_nop_();
_nop_();
_nop_();
}
void DelayX1ms(int idx)
{
for( ;idx>0;idx--)
{
Delay1ms();
}
}
void DelayX1us(int idx)
{
for( ;idx>0;idx--)
{
_nop_();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -