This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

timer不能启动?



我用下面语句,创建一个timer,遇到两个问题,1:有些宏定义不支持,比如 Timer_PeriodType_MICROSECS,2:创建完毕后timer不启动,为什么呀?我查看寄存器里的值也都没有变,相当于这些语句不起作用,立即启动和稍后用timer_start启动都试了,都不行

Timer_Params_init(&timerParams);
timerParams.period = 10;
timerParams.periodType = Timer_PeriodType_MICROSECS;
timerParams.arg = 1;
myTimer = Timer_create(Timer_ANY, myIsr, &timerParams, &eb);