LWTimer reset?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LWTimer reset?

Jump to solution
798 Views
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 Kudos
1 Solution
508 Views
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

View solution in original post

1 Reply
509 Views
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