static volatile unsigned portBASE_TYPE uxMissedTicks = ( unsigned portBASE_TYPE ) 0;\r
static volatile portBASE_TYPE xMissedYield = ( portBASE_TYPE ) pdFALSE;\r
static volatile portBASE_TYPE xNumOfOverflows = ( portBASE_TYPE ) 0;\r
+#if ( configUSE_TRACE_FACILITY == 1 )\r
+ static unsigned portBASE_TYPE uxTaskNumber = 0; /*lint !e956 Static is deliberate - this is guarded before use. */\r
+#endif\r
+\r
/* Debugging and trace facilities private variables and macros. ------------*/\r
\r
/*\r
static signed portCHAR *pcTraceBufferStart;\r
static signed portCHAR *pcTraceBufferEnd;\r
static signed portBASE_TYPE xTracing = pdFALSE;\r
-\r
+ static unsigned portBASE_TYPE uxPreviousTask = 255;\r
+ static portCHAR pcStatusString[ 50 ];\r
#endif\r
\r
/*-----------------------------------------------------------*/\r
{ \\r
if( xTracing ) \\r
{ \\r
- static unsigned portBASE_TYPE uxPreviousTask = 255; \\r
- \\r
if( uxPreviousTask != pxCurrentTCB->uxTCBNumber ) \\r
{ \\r
if( ( pcTraceBuffer + tskSIZE_OF_EACH_TRACE_LINE ) < pcTraceBufferEnd ) \\r
{\r
signed portBASE_TYPE xReturn;\r
tskTCB * pxNewTCB;\r
-#if ( configUSE_TRACE_FACILITY == 1 )\r
- static unsigned portBASE_TYPE uxTaskNumber = 0; /*lint !e956 Static is deliberate - this is guarded before use. */\r
-#endif\r
\r
/* Allocate the memory required by the TCB and stack for the new task.\r
checking that the allocation was successful. */\r
static void prvListTaskWithinSingleList( const signed portCHAR *pcWriteBuffer, xList *pxList, signed portCHAR cStatus )\r
{\r
volatile tskTCB *pxNextTCB, *pxFirstTCB;\r
- static portCHAR pcStatusString[ 50 ];\r
unsigned portSHORT usStackRemaining;\r
\r
/* Write the details of all the TCB's in pxList into the buffer. */\r