LWTimer reset?

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

LWTimer reset?

跳至解决方案
1,406 次查看
barbercolman
Contributor III

I want a timer that after 3 seconds with out user input the UI is reset. I can start a 3 second timer, but I do not see any way of resetting the timer to 3 seconds. Is there another option to canceling and restarting a timer?

Thanks

MQX 3.6.2

0 项奖励
回复
1 解答
1,116 次查看
DavidS
NXP Employee
NXP Employee

Hi Barber,

The lightweight timer is a very simple and limited capability timer module as compared to the full timer operations.  The full timer can be setup as a one shot occurence or periodic with a bunch of other capabilities.

Once you start a lightweight timer at whatever periodic rate you want you can cancel it using the _lwtimer_cancel_timer() function call.

Hope this helps.

Regards,

David

在原帖中查看解决方案

1 回复
1,117 次查看
DavidS
NXP Employee
NXP Employee

Hi Barber,

The lightweight timer is a very simple and limited capability timer module as compared to the full timer operations.  The full timer can be setup as a one shot occurence or periodic with a bunch of other capabilities.

Once you start a lightweight timer at whatever periodic rate you want you can cancel it using the _lwtimer_cancel_timer() function call.

Hope this helps.

Regards,

David