Task definitin ERROR!!!
Posted: Sun Dec 09, 2012 2:05 pm
Hi, dear all,
I fond an error,while I try to compile the source code. The error is :
./src/code.c:79: error: [11703] syntax error before numeric constant
The source code is as follows:
So, I wan to know how to define a task in ERIKA? By the way, the codes above is the source code.
Can someone give me some instructions?
Thanks!
I fond an error,while I try to compile the source code. The error is :
./src/code.c:79: error: [11703] syntax error before numeric constant
The source code is as follows:
Code: Select all
....
TASK(Task1)
{
EE_hal_disableIRQ();
for (int i = 0; i < 8; i++) {
delay(100);
led_off(i);
}
num = 0;
EE_hal_enableIRQ();
}
...
int main()
{
led_init();
/* Implement Alarms with either cmp0 or cmp1 */
//EE_tc179x_stm_cmp0_init(STM_VECTOR, STM_TIM0.reg + 10000);
ActivateTask(Task1);
while(1);
return 0;
}
Can someone give me some instructions?
Thanks!