CMSIS + 0/1 examples
CodeScope will show references to osSemaphoreAcquire() from the following samples and libraries:
Libraries
 
Symbols
loading...
Files
loading...

osSemaphoreAcquire() function

Acquire a Semaphore token or timeout if no tokens are available.

Syntax

osStatus_t osSemaphoreAcquire (osSemaphoreId_t semaphore_id,     uint32_t timeout);

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.

Examples

osSemaphoreAcquire() is referenced by 1 libraries and example projects.

References

LocationText
cmsis_os2.h:621
osStatus_t osSemaphoreAcquire (osSemaphoreId_t semaphore_id, uint32_t timeout);

Call Tree

Functions called by osSemaphoreAcquire()
osSemaphoreAcquire()
_txe_semaphore_get()
all items filtered out
Data read by osSemaphoreAcquire()
Data written by osSemaphoreAcquire()
TX_SEMAPHORE_STRUCT::tx_semaphore_id
osSemaphoreAcquire()::semaphore_ptr
osSemaphoreAcquire()::status
osSemaphoreAcquire()::wait_option
osSemaphoreAcquire()::tx_status
all items filtered out
osSemaphoreAcquire()
osSemaphoreAcquire()::status
osSemaphoreAcquire()::tx_status
all items filtered out
Type of osSemaphoreAcquire()
osSemaphoreAcquire()
UINT
ULONG
TX_SEMAPHORE
all items filtered out