bukhari917
Member level 1

hello everyone!
i'm trying to run the code given in this **broken link removed**.
.
.
.
.
///*
static unsigned int i=0;
InitTask(1,1);
while(1)
{
while(PORTB.F1);
flag=0;
} //*/
}
//
//Start flashing
//
void Task2(void)
{ //*
InitTask(2,1);
while(1)
{
while(PORTB.F2);
flag=1;
.
.
.
and getting this error:
99 324 "Undeclared identifier 'flag' in expression test.c"
i'm using MicroC as discussed in paper, and trying it for PIC18F2685
this "flag" is not declared in the code, then whats wrong m i doing?
thnx for your time
i'm trying to run the code given in this **broken link removed**.
.
.
.
.
///*
static unsigned int i=0;
InitTask(1,1);
while(1)
{
while(PORTB.F1);
flag=0;
} //*/
}
//
//Start flashing
//
void Task2(void)
{ //*
InitTask(2,1);
while(1)
{
while(PORTB.F2);
flag=1;
.
.
.
and getting this error:
99 324 "Undeclared identifier 'flag' in expression test.c"
i'm using MicroC as discussed in paper, and trying it for PIC18F2685
this "flag" is not declared in the code, then whats wrong m i doing?
thnx for your time