delay.c
来自「UPS111配小尺寸3.5寸摸拟屏的源码」· C语言 代码 · 共 62 行
C
62 行
//===================================================================================
//
// 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 + =
减小字号Ctrl + -
显示快捷键?