Macros | |
#define | corINITIAL_STATE ( 0 ) |
#define | prvAddCoRoutineToReadyQueue(pxCRCB) |
Functions | |
static void | prvCheckDelayedList (void) |
static void | prvCheckPendingReadyList (void) |
static void | prvInitialiseCoRoutineLists (void) |
void | vCoRoutineAddToDelayedList (portTickType xTicksToDelay, xList *pxEventList) |
void | vCoRoutineSchedule (void) |
signed portBASE_TYPE | xCoRoutineCreate (crCOROUTINE_CODE pxCoRoutineCode, unsigned portBASE_TYPE uxPriority, unsigned portBASE_TYPE uxIndex) |
signed portBASE_TYPE | xCoRoutineRemoveFromEventList (const xList *pxEventList) |
Variables | |
corCRCB * | pxCurrentCoRoutine = NULL |
static xList * | pxDelayedCoRoutineList |
static xList * | pxOverflowDelayedCoRoutineList |
static xList | pxReadyCoRoutineLists [configMAX_CO_ROUTINE_PRIORITIES] |
static unsigned portBASE_TYPE | uxTopCoRoutineReadyPriority = 0 |
static portTickType | xCoRoutineTickCount = 0 |
static xList | xDelayedCoRoutineList1 |
static xList | xDelayedCoRoutineList2 |
static portTickType | xLastTickCount = 0 |
static portTickType | xPassedTicks = 0 |
static xList | xPendingReadyCoRoutineList |
#define corINITIAL_STATE ( 0 ) |
Referenced by xCoRoutineCreate().
#define prvAddCoRoutineToReadyQueue | ( | pxCRCB | ) |
Referenced by prvCheckDelayedList(), prvCheckPendingReadyList(), and xCoRoutineCreate().
|
static |
References listGET_LIST_ITEM_VALUE, listGET_OWNER_OF_HEAD_ENTRY, listLIST_IS_EMPTY, pdFALSE, prvAddCoRoutineToReadyQueue, xLIST_ITEM::pvContainer, pxDelayedCoRoutineList, pxOverflowDelayedCoRoutineList, uxListRemove(), xCoRoutineTickCount, corCoRoutineControlBlock::xEventListItem, corCoRoutineControlBlock::xGenericListItem, xLastTickCount, xPassedTicks, and xTaskGetTickCount().
Referenced by vCoRoutineSchedule().
|
static |
|
static |
References vListInitialise(), xDelayedCoRoutineList1, and xDelayedCoRoutineList2.
Referenced by xCoRoutineCreate().
void vCoRoutineAddToDelayedList | ( | portTickType | xTicksToDelay, |
xList * | pxEventList | ||
) |
void vCoRoutineSchedule | ( | void | ) |
signed portBASE_TYPE xCoRoutineCreate | ( | crCOROUTINE_CODE | pxCoRoutineCode, |
unsigned portBASE_TYPE | uxPriority, | ||
unsigned portBASE_TYPE | uxIndex | ||
) |
References corINITIAL_STATE, errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY, listSET_LIST_ITEM_OWNER, listSET_LIST_ITEM_VALUE, NULL, pdPASS, portTickType, prvAddCoRoutineToReadyQueue, prvInitialiseCoRoutineLists(), pvPortMalloc(), corCoRoutineControlBlock::pxCoRoutineFunction, corCoRoutineControlBlock::uxIndex, corCoRoutineControlBlock::uxPriority, corCoRoutineControlBlock::uxState, vListInitialiseItem(), corCoRoutineControlBlock::xEventListItem, and corCoRoutineControlBlock::xGenericListItem.
signed portBASE_TYPE xCoRoutineRemoveFromEventList | ( | const xList * | pxEventList | ) |
|
static |
Referenced by prvCheckDelayedList().
|
static |
Referenced by prvCheckDelayedList().
|
static |
|
static |
Referenced by vCoRoutineSchedule().
|
static |
Referenced by prvCheckDelayedList(), and vCoRoutineAddToDelayedList().
|
static |
Referenced by prvInitialiseCoRoutineLists().
|
static |
Referenced by prvInitialiseCoRoutineLists().
|
static |
Referenced by prvCheckDelayedList().
|
static |
Referenced by prvCheckDelayedList().
|
static |