FreeRTOS - Task Priorities
You have two tasks: TaskA with priority 3 and TaskB with priority 5. You want TaskA to temporarily run with higher priority than TaskB during a critical section. Which code snippet correctly achieves this?
TaskHandle_t xTaskA, xTaskB; // Initially priorities: TaskA=3, TaskB=5 // Critical section starts _____; // Critical section ends vTaskPrioritySet(xTaskA, 3);
