编译报错:
USER\main.c(36): error: #167: argument of type "void" is incompatible with parameter of type "void (*)(void *)"
OK1=OSTaskCreate(Task1(),( void *)0,M1,perr1);
USER\main.c(38): error: #167: argument of type "void" is incompatible with parameter of type "void (*)(void *)"
OK2=OSTaskCreate(Task2(),( void *)0,M2,perr2);
void Task1(void);
void Task2(void);这两个是函数的定义,第一个参数的具体形式应该怎么写?
|