\r
\r
portBASE_TYPE xLocalError = pdFALSE;\r
+volatile unsigned portLONG ulIdleLoops = 0UL;\r
\r
/*-----------------------------------------------------------*/\r
\r
static portSHORT prvCheckOtherTasksAreStillRunning( void )\r
{\r
static portSHORT sNoErrorFound = pdTRUE;\r
+static unsigned portLONG ulLastIdleLoopCount = 0UL;\r
\r
/* The demo tasks maintain a count that increments every cycle of the task\r
provided that the task has never encountered an error. This function \r
{\r
sNoErrorFound = pdFALSE;\r
}\r
+\r
+ if( ulIdleLoops == ulLastIdleLoopCount )\r
+ {\r
+ sNoErrorFound = pdFALSE;\r
+ }\r
+ else\r
+ {\r
+ ulLastIdleLoopCount = ulIdleLoops;\r
+ }\r
\r
return sNoErrorFound;\r
}\r
taskYIELD();\r
}\r
#endif\r
+\r
+ ulIdleLoops++;\r
+\r
+ /* Place the processor into low power mode. */\r
+ LPM3;\r
}\r
}\r
\r