void delay (void)
{
Delay10TCYx(2);
}
void delay_ms(int us)
{
int ims;
for(ims=0;ims<us;ims++)
{
Delay1KTCYx(4);
Delay100TCYx(10);
}
}
void delay_s(int ms)
{
int ims;
for(ims=0;ims<ms;ims++)
{
delay_ms(1000);
}
}
//----------------------------- end-----------------------------
{
Delay10TCYx(2);
}
void delay_ms(int us)
{
int ims;
for(ims=0;ims<us;ims++)
{
Delay1KTCYx(4);
Delay100TCYx(10);
}
}
void delay_s(int ms)
{
int ims;
for(ims=0;ims<ms;ims++)
{
delay_ms(1000);
}
}
//----------------------------- end-----------------------------