Versions Compared

Key

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

...

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

Arguments

p_tmr

is a pointer to the timer-control block of the desired timer. It is assumed that storage for the timer will be allocated in the application. In other words, you should declare a “global” variable as follows, and pass a pointer to this variable to OSTmrCreate():

...

If OS_SAFETY_CRITICAL_IEC61508 is defined: you called this after calling OSSafetyCriticalStart() and thus you are no longer allowed to create additional kernel objects.

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