rrrum wrote on Friday, May 20, 2016:
For debug purpose I would like to know value of counting semaphore before giving semaphore.
Is there a function that returns count value?
rum
rrrum wrote on Friday, May 20, 2016:
For debug purpose I would like to know value of counting semaphore before giving semaphore.
Is there a function that returns count value?
rum
rtel wrote on Friday, May 20, 2016:
If you are using V9.0.0rc2 then you can use uxSemaphoreGetCount(),
otherwise you can use uxQueueMessagesWaiting()
and just cast the SemaphoreHandle_t to a QueueHandle_t for the
function’s parameter.