FreeRTOS - Interrupt Management
Examine the following FreeRTOS ISR code snippet for nested interrupt handling:
void ISR_MediumPriority(void) {
BaseType_t xHigherPriorityTaskWoken = pdFALSE;
xSemaphoreGiveFromISR(xSemaphore, &xHigherPriorityTaskWoken);
if(xHigherPriorityTaskWoken) {
taskYIELD();
}
}What is the main issue with this code?
