...
is a pointer to a variable used to hold an error code.
OS_ERR_NONE
if If a signal is received.
OS_ERR_PEND_ABORT
if If the pend was aborted because another task called OSTaskSemPendAbort()
.
OS_ERR_PEND_ISR
if If OS_CFG_CALLED_FROM_ISR_CHK_EN
set to 1
in os_cfg.h
: if calling this function from an ISR.
OS_ERR_PEND_WOULD_BLOCK
if If calling this function with the opt
argument set to OS_OPT_PEND_NON_BLOCKING
, and no signal was received.
OS_ERR_SCHED_LOCKED
if If calling this function when the scheduler is locked and the user wanted the task to block.
OS_ERR_TIMEOUT
if If a signal is not received within the specified timeout.
...