出现错误:led.c(12): error C141: syntax error near 'void', expected '__asm'
led.c(14): error C141: syntax error near 'void', expected '__asm'
#include <REGX52.H>
//void delay(unsigned int n);
void Delay500ms();
void main(void)
{
while(1)
{
P2 = 0xfe;
void Delay500ms();
P2 = 0xff;
void Delay500ms();
}
}
void Delay500ms() //@11.0592MHz
{
unsigned char i, j, k;
_nop_();
i = 4;
j = 129;
k = 119;
do
{
do
{
while (--k);
} while (--j);
} while (--i);
}