crSTART

h
 crSTART( xCoRoutineHandle xHandle );

This macro MUST always be called at the start of a co-routine function.

Example usage:

Co-routine to be created.
 void vACoRoutine( xCoRoutineHandle xHandle, unsigned portBASE_TYPE uxIndex )
 {
Variables in co-routines must be declared static if they must maintain value across a blocking call.
 static long ulAVariable;

Must start every co-routine with a call to crSTART();
     crSTART( xHandle );

     for( ;; )
     {
Co-routine functionality goes here.
     }

Must end every co-routine with a call to crEND();
     crEND();
 }

h

 crEND();

This macro MUST always be called at the end of a co-routine function.

Example usage:

Co-routine to be created.
 void vACoRoutine( xCoRoutineHandle xHandle, unsigned portBASE_TYPE uxIndex )
 {
Variables in co-routines must be declared static if they must maintain value across a blocking call.
 static long ulAVariable;

Must start every co-routine with a call to crSTART();
     crSTART( xHandle );

     for( ;; )
     {
Co-routine functionality goes here.
     }

Must end every co-routine with a call to crEND();
     crEND();
 }


Generated on Thu Dec 17 20:02:02 2009 for AVR32 UC3 - FreeRTOS Real Time Kernel by  doxygen 1.5.5