osSemaphoreWait() function
Wait until a Semaphore token becomes available
Arguments
millisec
timeout value or 0 in case of no time-out.
Return value
number of available tokens, or -1 in case of incorrect parameters.
Notes
MUST REMAIN UNCHANGED: \b osSemaphoreWait shall be consistent in every CMSIS-RTOS.
osSemaphoreWait() calls 3 functions:
![]()
osSemaphoreWait()
osSemaphoreWait() reads 3 variables:
![]()
osSemaphoreWait()