FreeRTOS - Debugging and Monitoring
Given the code snippet:
What is the likely problem with this code?
void vTask(void *pvParameters) {
for(;;) {
if(xSemaphoreTake(xSem, 0) == pdTRUE) {
// Critical section
xSemaphoreGive(xSem);
}
}
}What is the likely problem with this code?
