...
provides options to the call.
OS_OPT_POST_NONE
No option, by default the scheduler will be called.
OS_OPT_POST_NO_SCHED
Do not call the scheduler after the post, therefore the caller is resumed.
You would use this option if the task (or ISR) calling OSTaskSemPost()
will be doing additional posts, reschedule waits until all is done, and multiple posts are to take effect simultaneously.
p_err
is a pointer to a variable that will contain an error code returned by this function.
...
If the call was successful and the signal was sent.
OS_ERR_SEM_OVF
the post would have caused the semaphore counter to overflow.
Returned Value
The current value of the task’s signal counter, or 0
if called from an ISR and OS_CFG_ISR_POST_DEFERRED_EN
is set to 1.
...