Hello FreeRTOS Team
I use TMS570LC4357 HDK with FreeRTOS, HALCoGen v4.5.1 for Code generation and CCSv6 as IDE.
I use Counting Semaphore to handle an Interrupt task. I’ve configured the Semaphore queue size as 100 and the waiting time for Semaphore as 1 tick.
When I run the code, the time taken between xSemaphoreGiveFromISR( xSemaphore, &xHigherPriorityTaskWoken ); inside the ISR and the if(xSemaphoreTake( xSemaphore, 0x01 ) == pdTRUE) inside the ISR Handler is 880ms. Also I face a Jitter in the task that runs cyclically every 1ms. Does Counting Semaphore execution time take 880ms?
Which of these consume the least exection time in event handling
i) Counting Semaphore
ii) Binary Semaphore
iii) Event Group ?