V1.0
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#ifndef _Delay_C_
|
||||
#define _Delay_C_
|
||||
/*********************************************************************************************************************/
|
||||
void Delay_50us(unsigned int n)
|
||||
{
|
||||
unsigned char i;
|
||||
while(n--)
|
||||
{
|
||||
for(i=0;i<71;i++);
|
||||
}
|
||||
}
|
||||
void Delay_ms(unsigned int delay_nms)
|
||||
{
|
||||
while(delay_nms--)
|
||||
{
|
||||
Delay_50us(20);
|
||||
}
|
||||
}
|
||||
/*********************************************************************************************************************/
|
||||
#endif
|
||||
Reference in New Issue
Block a user