delay.h
Go to the documentation of this file.
1 //#define Fcy 14754600
2 #define Fcy 40000000
3 
4 void Delay( unsigned int delay_count );
5 void Delay_Us( unsigned int delayUs_count );
6 
7 //Used with Delay_Us()
8 #define Delay1uS_count (Fcy * 0.0001) / 1080
9 
10 //Used with Delay()
11 #define Delay_1mS_Cnt (Fcy * 0.001) / 2950
12 #define Delay_2mS_Cnt (Fcy * 0.002) / 2950
13 #define Delay_5mS_Cnt (Fcy * 0.005) / 2950
14 #define Delay_15mS_Cnt (Fcy * 0.015) / 2950
15 #define Delay_1S_Cnt (Fcy * 1) / 2950
16 
void Delay(unsigned int delay_count)
Definition: delay.c:45
void Delay_Us(unsigned int delayUs_count)
Definition: delay.c:60