...
at least one task waiting on the message queue was readied and informed of the aborted wait. Check the return value for the number of tasks whose wait on the message queue was aborted.
OS_ERR_PENDOBJ_ABORTPTR_ISRNULL
If OS_CFG_CALLED_FROMARG_ISR_CHK_EN
is set to 1
in DEF_ENABLED
in os_cfg.h
: if called from an ISR p_q
is a NULL
pointer.
OS_ERR_PENDOBJ_ABORT_NONE
...
TYPE
If OS_CFG_OBJ_TYPE_CHK_EN
is set to DEF_ENABLED
in os_cfg.h
: if p_q
is not pointing to a message queue.
OS_ERR_OBJOPT_PTR_NULLINVALID
If If OS_CFG_ARG_CHK_EN
is set to 1
in is set to DEF_ENABLED
in os_cfg.h
: if p_q
is a NULL
pointera valid option is not specified.
OS_ERR_OBJOS_NOT_TYPERUNNING
If If OS_CFG_INVALID_OBJOS_TYPECALLS_CHK_EN
is set to 1
in is set to DEF_ENABLED
in os_cfg.h
: if p_q
is not pointing to a message queueif µC/OS-III is not running yet.
OS_ERR_PEND_OPTABORT_INVALIDISR
If If OS_CFG_CALLED_FROM_ARGISR_CHK_EN
is set to 1
in set to DEF_ENABLED
in os_cfg.h
: if an invalid option is specified.called from an ISR
OS_ERR_PEND_ABORT_NONE
If no task was pending on the message queue
Returned Value
OSQPendAbort()
returns the number of tasks made ready-to-run by this function. Zero indicates that no tasks were pending on the message queue, therefore this function had no effector an error.
Required Configuration
OS_CFG_Q_EN
and OS_CFG_Q_PEND_ABORT_EN
must be enabled in os_cfg.h
. Refer to uCµC-OS-III Configuration Manual.
Callers
Application.
Notes/Warnings
...