15 #ifndef FREERTOS_TASKS_C_ADDITIONS_H
16 #define FREERTOS_TASKS_C_ADDITIONS_H
30 UBaseType_t uxHigherPriorityReadyTasks = pdFALSE;
35 #if(configUSE_PORT_OPTIMISED_TASK_SELECTION == 0)
37 if(uxTopReadyPriority > tskIDLE_PRIORITY)
39 uxHigherPriorityReadyTasks = pdTRUE;
44 const UBaseType_t uxLeastSignificantBit = (UBaseType_t)0x01;
51 if(uxTopReadyPriority > uxLeastSignificantBit)
53 uxHigherPriorityReadyTasks = pdTRUE;
58 if(pxCurrentTCB->uxPriority > tskIDLE_PRIORITY)
62 else if(listCURRENT_LIST_LENGTH(&(pxReadyTasksLists[tskIDLE_PRIORITY])) > 1)
69 else if(uxHigherPriorityReadyTasks != pdFALSE)
78 xReturn = xNextTaskUnblockTime - xTickCount;
92 return (listCURRENT_LIST_LENGTH(pxDelayedTaskList)) ? pdFALSE : pdTRUE;