delay.h

来自「Mplab C30编译器」· C头文件 代码 · 共 14 行

H
14
字号
/* Change the following definition to match the instruction frequency 
of the application in MIPS (MHz) */
#define Fcy  16000000

void Delay( unsigned int delay_count );
void Delay_Us( unsigned int delayUs_count );

#define Delay200uS_count  (Fcy * 0.0002) / 1080
#define Delay_1mS_Cnt     (Fcy * 0.001) / 2950
#define Delay_2mS_Cnt     (Fcy * 0.002) / 2950
#define Delay_5mS_Cnt     (Fcy * 0.005) / 2950
#define Delay_15mS_Cnt    (Fcy * 0.015) / 2950
#define Delay_1S_Cnt      (Fcy * 1) / 2950

⌨️ 快捷键说明

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