xTaskHandle xTaskGetCurrentTaskHandle( void );INCLUDE_xTaskGetCurrentTaskHandle must be set to 1 for this function to be available.
volatile portTickType xTaskGetTickCount( void );INCLUDE_xTaskGetSchedulerState must be set to 1 for this function to be available.
portBASE_TYPE xTaskGetSchedulerState( void );
unsigned portBASE_TYPE uxTaskGetNumberOfTasks( void );
void vTaskList( portCHAR *pcWriteBuffer );configUSE_TRACE_FACILITY, INCLUDE_vTaskDelete and INCLUDE_vTaskSuspend must all be defined as 1 for this function to be available. See the configuration section for more information.
NOTE: This function will disable interrupts for its duration. It is not intended for normal application runtime use but as a debug aid.
Lists all the current tasks, along with their current state and stack usage high water mark.
Tasks are reported as blocked ('B'), ready ('R'), deleted ('D') or suspended ('S').
| pcWriteBuffer | A buffer into which the above mentioned details will be written, in ascii form. This buffer is assumed to be large enough to contain the generated report. Approximately 40 bytes per task should be sufficient. |
void vTaskStartTrace( portCHAR * pcBuffer, unsigned portLONG ulBufferSize );[The function relates to the original trace utility - which is still provided - however users may find the newer Trace Hook Macros easier and more powerful to use.]
Starts a real time kernel activity trace. The trace logs the identity of which task is running when.
The trace file is stored in binary format. A separate DOS utility called convtrce.exe is used to convert this into a tab delimited text file which can be viewed and plotted in a spread sheet.
| pcBuffer | The buffer into which the trace will be written. |
| ulBufferSize | The size of pcBuffer in bytes. The trace will continue until either the buffer in full, or ulTaskEndTrace() is called. |
unsigned portLONG ulTaskEndTrace( void );[The function relates to the original trace utility - which is still provided - however users may find the newer Trace Hook Macros easier and more powerful to use.]
Stops a kernel activity trace. See vTaskStartTrace().