Home > other >  In the keil code, compiled according to value their error definition
In the keil code, compiled according to value their error definition

Time:01-25

The code below
# include
# include
# define uint unsigned int
# define uchar unsigned char
Void delay (uint);
Uchar temp.
Temp=0 xfe;
P1=temp;
Void main ()
{
While (1)
{
Temp=_cror_ (temp, 1);
Delay (600);
P1=temp;
}
}
Void delay (uint z)
{
Uint x, y;
For (x=100; X> 0; X -)
For (y=z; Y> 0; Y -);
}
Display an error
The error C231: 'P1: redefinition

What is wrong, I didn't redefine P1?
  • Related