Timer Issue mqx

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Timer Issue mqx

1,011 次查看
MarcoBrischetto
Contributor I

Hi

I'm using MQX 4.2 on a twr_k70 and i have trouble with the timer. I need a timer which calls a function every 10 seconds, this function makes a task ready. The timer seems to work well if it is set to short time intervals (like 50ms or so). But when it is set to 10 seconds, the function is never called.

I attach the configuration code:  

_timer_id Timer;
Timer = _timer_start_periodic_every(flag, 0, TIMER_ELAPSED_TIME_MODE, 10000);

_time_delay_ticks(600);

thanks in advance!

0 项奖励
回复
1 回复

965 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi Marco

Please refer to below link for how to use MQX timers.

https://community.nxp.com/t5/MQX-Software-Solutions-Knowledge/Using-the-MQX-timers/ta-p/1110647

 

Regards

Daniel

标记 (1)
0 项奖励
回复