各位好,为什么创建了一个定时器,一直都进不了回调函数?系统运行正常,OS
timeDlyHMSM定时也正常,请各位指点一下,谢谢
void StartTask(void *pdata)
{
INT8U err = 0;
OS_TMR *tmr1; //
tmr1=OSTmrCreate(100,100,OS_TMR_OPT_PERIODIC,(OS_TMR_CALLBACK)tmr1_callback,0,(uint8*)"tmr1",&err);
OSTmrStart(tmr1,&err);
}
void tmr1_callback(OS_TMR *ptmr,void *p_arg)
{
printf("i am timer1rn");
}