-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdelay.h
More file actions
19 lines (15 loc) · 745 Bytes
/
delay.h
File metadata and controls
19 lines (15 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _DELAY_H
#define _DELAY_H
#include"stdutils.h"
/* Count to generate 1ms delay at 11.0592Mhz clock.
The value is obtained by toggling the Port pins to generate 2Kz square wave */
#define C_CountForOneMsDelay_U16 112u
#define ENABLE_DELAY_SEC 0
/***************************************************************************************************
Function prototypes
***************************************************************************************************/
void DELAY_us(uint16_t us_count);
void DELAY_ms(uint16_t ms_count);
void DELAY_sec(uint16_t sec_count);
/**************************************************************************************************/
#endif