我的环境:hitech 9.83 pro PIC16f1827
我源码用到了函数指针,但编译时编译器报告“Error [712] main.c; 389. can't generate code for this expression”
代码如下:
void thread_thsensor(void)
{
do
{
...
}while(1);
}
int main(void)
{
OS_Init();
OS_Task_Create(0, (unsigned int)thread_slip);//报错[712]
OS_Task_Create(0, (unsigned int)thread_thsensor);//报错[712]
OS_EI();
OS_Run();
}
OS_Task_Create(unsigned int priority, unsigned int fun_addr)是原型
给我帮我看看,或者给点线索啊! |