xSemaphoreCreateCountingWithCaps() function
Creates a counting semaphore with specific memory capabilities This function is similar to xSemaphoreCreateCounting(), except that it allows the memory allocated for the counting semaphore to have specific capabilities (e.g., MALLOC_CAP_INTERNAL).
Arguments
uxMaxCount
The maximum count value that can be reached.
uxInitialCount
The count value assigned to the semaphore when it is created.
uxMemoryCaps
Memory capabilities of the counting semaphore's memory (see esp_heap_caps.h)
Return value
Handle to the created counting semaphore or NULL on failure.
Notes
A counting semaphore created using this function must only be deleted using vSemaphoreDeleteWithCaps()
xSemaphoreCreateCountingWithCaps() calls 1 function:
![]()
xSemaphoreCreateCountingWithCaps()
xSemaphoreCreateCountingWithCaps():
![]()
xSemaphoreCreateCountingWithCaps()