Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The timer is created in the “stop” mode and therefore the user must call OSTmrStart() to actually start the timer. If configuring the timer for ONE-SHOT mode, and the timer expires, you need to call OSTmrStart() to retrigger the timer, call OSTmrDel() to delete the timer if it is not necessary to retrigger it, or not use the timer anymore. Note: you can use the callback function to delete the timer if using the ONE-SHOT mode.

Image RemovedImage Added

PERIODIC MODE (see “opt”) – dly > 0, period > 0

Image RemovedImage Added

PERIODIC MODE (see “opt”) – “dly == 0, period > 0

Image RemovedImage Added

ONE-SHOT MODE (see “opt”) – dly > 0, period == 0

...

Returned Values

None.

Notes/Warnings

  • Do not call this function from an ISR.
  • The timer is not started when it is created. To start the timer, simply call OSTmrStart().
  • Do not make blocking calls within callback functions.
  • Keep callback functions as short as possible.

Example