[En-Nut-Discussion] Re-triggerable timer in Nut/OS

Harald Kipp harald.kipp at egnite.de
Thu Nov 15 14:19:33 CET 2012


Hi Ulrich,

On 15.11.2012 11:39, Ulrich Prinz wrote:

> Proposal:
> NutTimerRestart() has the same parameters as NutTimerStart() but
> checks if the HANDLE is already assigned and just resets the timeout
> counter. If not it creates and starts the timer by calling
> NutTimerStart()

Good idea.

Just a warning: Its implementation may be a bit tricky, because the
timeout values in the timer table are incremental. Restarting a timer
may require to update all entries.

Regards,

Harald



More information about the En-Nut-Discussion mailing list