#include "FreeRTOS.h"
#include "task.h"
#include "croutine.h"
#define corINITIAL_STATE ( 0 ) |
#define prvAddCoRoutineToReadyQueue |
( |
|
pxCRCB | ) |
|
Value:
}
static List_t pxReadyCoRoutineLists[configMAX_CO_ROUTINE_PRIORITIES]
Definition: freertos-8.0.1/Source/croutine.c:80
void vListInsertEnd(xList *const pxList, xListItem *const pxNewListItem)
Definition: freertos-7.5.2/Source/list.c:101
static UBaseType_t uxTopCoRoutineReadyPriority
Definition: freertos-8.0.1/Source/croutine.c:89
if(memp!=NULL)
Definition: memp.c:407
Definition: freertos-7.5.2/Source/include/list.h:156
Referenced by prvCheckDelayedList(), prvCheckPendingReadyList(), and xCoRoutineCreate().
static void prvCheckDelayedList |
( |
void |
| ) |
|
|
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 void prvCheckPendingReadyList |
( |
void |
| ) |
|
|
static |
static void prvInitialiseCoRoutineLists |
( |
void |
| ) |
|
|
static |
void vCoRoutineAddToDelayedList |
( |
TickType_t |
xTicksToDelay, |
|
|
List_t * |
pxEventList |
|
) |
| |
void vCoRoutineSchedule |
( |
void |
| ) |
|
BaseType_t xCoRoutineCreate |
( |
crCOROUTINE_CODE |
pxCoRoutineCode, |
|
|
UBaseType_t |
uxPriority, |
|
|
UBaseType_t |
uxIndex |
|
) |
| |
References corINITIAL_STATE, errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY, listSET_LIST_ITEM_OWNER, listSET_LIST_ITEM_VALUE, NULL, pdPASS, prvAddCoRoutineToReadyQueue, prvInitialiseCoRoutineLists(), pvPortMalloc(), corCoRoutineControlBlock::pxCoRoutineFunction, corCoRoutineControlBlock::uxIndex, corCoRoutineControlBlock::uxPriority, corCoRoutineControlBlock::uxState, vListInitialiseItem(), corCoRoutineControlBlock::xEventListItem, and corCoRoutineControlBlock::xGenericListItem.
BaseType_t xCoRoutineRemoveFromEventList |
( |
const List_t * |
pxEventList | ) |
|
List_t* pxDelayedCoRoutineList |
|
static |
List_t* pxOverflowDelayedCoRoutineList |
|
static |
List_t pxReadyCoRoutineLists[configMAX_CO_ROUTINE_PRIORITIES] |
|
static |
UBaseType_t uxTopCoRoutineReadyPriority = 0 |
|
static |
TickType_t xCoRoutineTickCount = 0 |
|
static |
TickType_t xLastTickCount = 0 |
|
static |
TickType_t xPassedTicks = 0 |
|
static |
List_t xPendingReadyCoRoutineList |
|
static |