...
is a pointer to a variable used to hold an error code:
OS_ERR_NONE
if the call is successful and the semaphore has been created.
OS_ERR_CREATE_ISR
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 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 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 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 Value
None
Notes/Warnings
...