...
OSTaskSemSet()
allows the user to set the value of the task’s signal counter. You would set the signal counter of the calling task by passing a NULL
pointer for p_tcb
.
Arguments
p_tcb
is a pointer to the task’s OS_TCB
to clear the signal counter. A NULL
pointer indicates that the user wants to clear the caller’s signal counter.
...
If OS_CFG_CALLED_FROM_ISR_CHK_EN
set to 1
in os_cfg.h
: if calling this function from an ISR
Returned Value
The value of the signal counter prior to setting it.
Notes/Warnings
None