delay.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define Fcy   40000000
 
#define Delay1uS_count   (Fcy * 0.0001) / 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
 

Functions

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

Macro Definition Documentation

#define Delay1uS_count   (Fcy * 0.0001) / 1080

Definition at line 8 of file delay.h.

#define Delay_15mS_Cnt   (Fcy * 0.015) / 2950

Definition at line 14 of file delay.h.

#define Delay_1mS_Cnt   (Fcy * 0.001) / 2950

Definition at line 11 of file delay.h.

#define Delay_1S_Cnt   (Fcy * 1) / 2950

Definition at line 15 of file delay.h.

#define Delay_2mS_Cnt   (Fcy * 0.002) / 2950

Definition at line 12 of file delay.h.

#define Delay_5mS_Cnt   (Fcy * 0.005) / 2950

Definition at line 13 of file delay.h.

#define Fcy   40000000

Definition at line 2 of file delay.h.

Function Documentation

void Delay ( unsigned int  delay_count)

Definition at line 45 of file delay.c.

Here is the caller graph for this function:

void Delay_Us ( unsigned int  delayUs_count)

Definition at line 60 of file delay.c.

Here is the caller graph for this function: