Versions Compared

Key

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

...

is a pointer to an error code and can be:

OS_ERR_NONE

the call is successful.

OS_ERR_FLAG_INVALID_OPT

If OS_CFG_ARG_CHK_EN is set to 1 in os_cfg.h: if you specified an invalid option.

...

The new value of the event flags.

Notes/Warnings

...

  • Event flag groups must be created before they are used.

...

  • The execution time of this function depends on the number of tasks waiting on the event flag group. However, the execution time is still deterministic.

...

  • Although the example below shows that we are posting from a task, OSFlagPost() can also be called from an ISR.

Example