FreeRTOS - Task Priorities
Identify the error in this code snippet:
TaskHandle_t xHandle;
UBaseType_t uxPriority = uxTaskPriorityGet(xHandle);
printf("Priority: %u\n", uxPriority);Identify the error in this code snippet:
TaskHandle_t xHandle;
UBaseType_t uxPriority = uxTaskPriorityGet(xHandle);
printf("Priority: %u\n", uxPriority);xHandle is declared but not assigned any value before use.uxTaskPriorityGet() leads to undefined behavior or incorrect priority reading.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions