error C202: 'p1': undefined identifier

#include<reg51.h>
void delay();

void man()
{

while(1)
{
p1=0x00;
delay();
p1=0xff;
delay();
}
}
void delay()
{
int i;
for(i=0;i<500000;i++);
}

Parents Reply Children
No data