Go to the source code of this file.
Functions | |
void | vStartIntegerMathTasks (unsigned portBASE_TYPE uxPriority) |
portBASE_TYPE | xAreIntegerMathsTaskStillRunning (void) |
void vStartIntegerMathTasks | ( | unsigned portBASE_TYPE | uxPriority | ) |
Definition at line 118 of file integer.c.
References intgNUMBER_OF_TASKS, intgSTACK_SIZE, xTaskCheck, and xTaskCreate.
Referenced by main().
00119 { 00120 short sTask; 00121 00122 for( sTask = 0; sTask < intgNUMBER_OF_TASKS; sTask++ ) 00123 { 00124 xTaskCreate( vCompeteingIntMathTask, ( signed char * ) "IntMath", intgSTACK_SIZE, ( void * ) &( xTaskCheck[ sTask ] ), uxPriority, ( xTaskHandle * ) NULL ); 00125 } 00126 }
portBASE_TYPE xAreIntegerMathsTaskStillRunning | ( | void | ) |
Definition at line 190 of file integer.c.
References intgNUMBER_OF_TASKS, pdFALSE, pdTRUE, portBASE_TYPE, and xTaskCheck.
Referenced by prvCheckOtherTasksAreStillRunning().
00191 { 00192 portBASE_TYPE xReturn = pdTRUE; 00193 short sTask; 00194 00195 /* Check the maths tasks are still running by ensuring their check variables 00196 are still being set to true. */ 00197 for( sTask = 0; sTask < intgNUMBER_OF_TASKS; sTask++ ) 00198 { 00199 if( xTaskCheck[ sTask ] == pdFALSE ) 00200 { 00201 /* The check has not incremented so an error exists. */ 00202 xReturn = pdFALSE; 00203 } 00204 00205 /* Reset the check variable so we can tell if it has been set by 00206 the next time around. */ 00207 xTaskCheck[ sTask ] = pdFALSE; 00208 } 00209 00210 return xReturn; 00211 }