Versions Compared

Key

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

...

is a pointer to a variable used to hold an error code:

OS_ERR_NONE

if If the call is successful and the semaphore has been created.

OS_ERR_CREATE_ISR

if If OS_CFG_CALLED_FROM_ISR_CHK_EN set to 1 in os_cfg.h: if you attempted to create a semaphore from an ISR.

OS_ERR_OBJ_PTR_NULL

if If OS_CFG_ARG_CHK_EN is set to 1 in os_cfg.h: if p_sem is a NULL pointer.

OS_ERR_OBJ_TYPE

if If OS_CFG_OBJ_TYPE_CHK_EN is set to 1 in os_cfg.h: if p_sem has been initialized to a different object type.

OS_ERR_ILLEGAL_CREATE_RUN_TIME

if 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.

...