delay.c
来自「讲述ADE7755芯片的基本知识和一些基本应用包含C语言编程」· C语言 代码 · 共 29 行
C
29 行
#include <REG932.h>
#include <Define.h>
#include <Stdio.h>
#include <Intrins.h>
//------------------------------ *** - 时间延时 - *** ------------------------------//
void Delay(unsigned int count)
{
unsigned int i,j;
for(i=0; i<=count; i++)
{
for(j=0; j<5; j++)
{
;
}
}
}
//------------------------------ *** - 中断里面使用的延时<独占方式> - *** ------------------------------//
void InitDelay(unsigned char count)
{
unsigned int i,j;
for(i=0; i<=count; i++)
{
for(j=0; j<5; j++)
{
;
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?