delay.h

来自「This program is distributed in the hope 」· C头文件 代码 · 共 23 行

H
23
字号
/*************************************** * delay.h *  *  *  *  ***************************************/static udelay (int usec){  TH0 = 0xFF-(unsigned char)(usec*2 >> 8);  TL0 = 0xFF-(unsigned char)(usec*2 & 0xFF);  TCON &= ~0x20;  while(!(TCON & 0x20));}#define __timeafter (TCON & 0x20)static timeafter(int usec){  TH0 = 0xFF-(unsigned char)(usec*2 >> 8);  TL0 = 0xFF-(unsigned char)(usec*2 & 0xFF);  TCON &=~0x20;}

⌨️ 快捷键说明

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