#include
#define lamp_led p2
void delay50 (unsigned int) ;
void main(void)
{
unsigned char n;
lamp_led=0xfe;
while(1)
{
for(n=7; n>0;n--)
{ lamp_led=_crol_(lamp_led,1) ;
delay50(50) ;
}
}
}
void delay50(unsigned int c )
{ unsigned char a,b;
for(c;c>0;c--)
for(a=38;a>0;a--)
for(b=130;b>0;b--);}
编译为什么显示
MAIN.C(16): error C202: 'p2': undefined identifier
MAIN.C(20): error C202: 'p2': undefined identifier
Target not created
定义lamp_led不能这么定义吗,小白求解答