Pumpkin, Inc.

Pumpkin User Forums

Cyclic Timers

If you can't make Salvo do what you want it to do, post it here.

Cyclic Timers

Postby dcassidy » Wed May 26, 2004 5:11 am

If OSStartCycTmr() is called before it times out again will it reset? Should a test be done using OSCycTmrRunning() before its started?
Posts: 16
Joined: Tue Feb 17, 2004 12:00 am
Location: Chelmsford, MA, USA

Re: Cyclic Timers

Postby aek » Thu May 27, 2004 12:17 am

OSStartCycTmr() will return OSERR_CT_RUNNING and perform no other action if the cyclic timer is still in the delay queue and is waiting to time out.

OSCycTmrRunning() returns TRUE for the same condition.

If you need to "push out" a running cycTmr's delay so that it will time out some time in the future irrespective of when it's scheduled to time out, then you should use OSResetCycTmr().


Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Return to Coding

Who is online

Users browsing this forum: No registered users and 1 guest