/* Just loops around incrementing the shared variable until the limit has been reached. Once the limit has been reached it suspends itself.  */
static void vLimitedIncrementTask(void *pvParameters)
/* Just loops around incrementing the shared variable until the limit has been reached. Once the limit has been reached it suspends itself.  */
static void vLimitedIncrementTask(void *pvParameters)
{
unsigned long *pulCounter;
	pulCounter = ( unsigned long * ) pvParameters;
	vTaskSuspend( NULL );
	for( ;; )
	{
		( *pulCounter )++;		if( *pulCounter >= priMAX_COUNT )
		{
			vTaskSuspend( NULL );
		} 	}
}