#include <REGX52.H>
void Delay1ms(unsigned int xms) //@12.000MHz
{
unsigned char i, j;
while(xms--)
{
i = 2;
j = 239;
do
{
while (--j);
} while (--i);
}
}
void main()
{
while(1)
{
P2_0==0;
Delay(500);
P2_0==1;
Delay(500);
}
}
main.c(22): error C267: 'Delay': requires ANSI-style prototype
|