#define portCLEAN_UP_TCB( pxTCB ) ( void ) pxTCB\r
#endif\r
\r
+#ifndef portSETUP_TCB\r
+ #define portSETUP_TCB( pxTCB ) ( void ) pxTCB\r
+#endif\r
+\r
#ifndef configQUEUE_REGISTRY_SIZE\r
#define configQUEUE_REGISTRY_SIZE 0U\r
#endif\r
\r
/* The following event macros are embedded in the kernel API calls. */\r
\r
+#ifndef traceMOVED_TASK_TO_READY_STATE\r
+ #define traceMOVED_TASK_TO_READY_STATE( pxTCB )\r
+#endif\r
+\r
#ifndef traceQUEUE_CREATE \r
#define traceQUEUE_CREATE( pxNewQueue )\r
#endif\r
PRIVILEGED_DATA static volatile unsigned portBASE_TYPE uxMissedTicks = ( unsigned portBASE_TYPE ) 0U;\r
PRIVILEGED_DATA static volatile portBASE_TYPE xMissedYield = ( portBASE_TYPE ) pdFALSE;\r
PRIVILEGED_DATA static volatile portBASE_TYPE xNumOfOverflows = ( portBASE_TYPE ) 0;\r
-PRIVILEGED_DATA static unsigned portBASE_TYPE uxTCBNumber = ( unsigned portBASE_TYPE ) 0U;\r
+PRIVILEGED_DATA static unsigned portBASE_TYPE uxTaskNumber = ( unsigned portBASE_TYPE ) 0U;\r
PRIVILEGED_DATA static portTickType xNextTaskUnblockTime = ( portTickType ) portMAX_DELAY;\r
\r
#if ( configGENERATE_RUN_TIME_STATS == 1 )\r
* executing task has been rescheduled.\r
*/\r
#define prvAddTaskToReadyQueue( pxTCB ) \\r
+ traceMOVED_TASK_TO_READY_STATE( pxTCB ) \\r
if( ( pxTCB )->uxPriority > uxTopReadyPriority ) \\r
{ \\r
uxTopReadyPriority = ( pxTCB )->uxPriority; \\r
#if ( configUSE_TRACE_FACILITY == 1 )\r
{\r
/* Add a counter into the TCB for tracing only. */\r
- pxNewTCB->uxTCBNumber = uxTCBNumber;\r
+ pxNewTCB->uxTCBNumber = uxTaskNumber;\r
}\r
#endif\r
- uxTCBNumber++;\r
+ uxTaskNumber++;\r
\r
prvAddTaskToReadyQueue( pxNewTCB );\r
\r
xReturn = pdPASS;\r
+ portSETUP_TCB( pxNewTCB );\r
traceTASK_CREATE( pxNewTCB );\r
}\r
taskEXIT_CRITICAL();\r
\r
/* Increment the uxTaskNumberVariable also so kernel aware debuggers\r
can detect that the task lists need re-generating. */\r
- uxTCBNumber++;\r
+ uxTaskNumber++;\r
\r
traceTASK_DELETE( pxTCB );\r
}\r
static void prvDeleteTCB( tskTCB *pxTCB )\r
{\r
/* This call is required specifically for the TriCore port. It must be\r
- above the vPortFree() calls. */\r
+ above the vPortFree() calls. The call is also used by ports/demos that\r
+ want to allocate and clean RAM statically. */\r
portCLEAN_UP_TCB( pxTCB );\r
\r
/* Free up the memory allocated by the scheduler for the task. It is up to\r