uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
croutine.c File Reference
#include "FreeRTOS.h"
#include "task.h"
#include "croutine.h"

Go to the source code of this file.

Macros

#define corINITIAL_STATE   ( 0 )
 
#define prvAddCoRoutineToReadyQueue(pxCRCB)
 

Functions

signed portBASE_TYPE xCoRoutineCreate (crCOROUTINE_CODE pxCoRoutineCode, unsigned portBASE_TYPE uxPriority, unsigned portBASE_TYPE uxIndex)
 
void vCoRoutineAddToDelayedList (portTickType xTicksToDelay, xList *pxEventList)
 
void vCoRoutineSchedule (void)
 
signed portBASE_TYPE xCoRoutineRemoveFromEventList (const xList *pxEventList)
 

Variables

corCRCBpxCurrentCoRoutine = NULL
 

Macro Definition Documentation

#define corINITIAL_STATE   ( 0 )

Definition at line 93 of file croutine.c.

#define prvAddCoRoutineToReadyQueue (   pxCRCB)
Value:
{ \
if( pxCRCB->uxPriority > uxTopCoRoutineReadyPriority ) \
{ \
uxTopCoRoutineReadyPriority = pxCRCB->uxPriority; \
} \
vListInsertEnd( ( xList * ) &( pxReadyCoRoutineLists[ pxCRCB->uxPriority ] ), &( pxCRCB->xGenericListItem ) ); \
}

Definition at line 102 of file croutine.c.

Function Documentation

void vCoRoutineAddToDelayedList ( portTickType  xTicksToDelay,
xList pxEventList 
)

Definition at line 194 of file croutine.c.

void vCoRoutineSchedule ( void  )

Definition at line 313 of file croutine.c.

signed portBASE_TYPE xCoRoutineCreate ( crCOROUTINE_CODE  pxCoRoutineCode,
unsigned portBASE_TYPE  uxPriority,
unsigned portBASE_TYPE  uxIndex 
)

Definition at line 137 of file croutine.c.

signed portBASE_TYPE xCoRoutineRemoveFromEventList ( const xList pxEventList)

Definition at line 363 of file croutine.c.

Variable Documentation

corCRCB* pxCurrentCoRoutine = NULL

Definition at line 88 of file croutine.c.