osSemaphoreAcquire() function
Acquire a Semaphore token or timeout if no tokens are available.
Arguments
semaphore_id
semaphore ID obtained by osSemaphoreNew.
timeout
CMSIS_RTOS_TimeOutValue or 0 in case of no time-out.
Return value
status code that indicates the execution status of the function.
osSemaphoreAcquire() calls 1 function:
![]()
osSemaphoreAcquire()
osSemaphoreAcquire() reads 4 variables:
![]()
osSemaphoreAcquire()