Add new xTaskGetSystemState() API function to return raw data on each task in the system.

Relegate the vTaskList() and vTaskGetRunTimeStats() functions to "sample" functions demonstrating how to use xTaskGetSystemState() to generate human readable status information.
Introduce and default configINCLUDE_STATS_FORMATTING_FUNCTIONS which must now be defined to use vTaskList() and vTaskGetRunTimeStats().
This commit is contained in:
Richard Barry
2013-07-02 12:10:16 +00:00
parent 877ce218a4
commit c1b4fc58d2
3 changed files with 508 additions and 280 deletions

View File

@ -588,6 +588,10 @@ typedef portBASE_TYPE (*pdTASK_HOOK_CODE)( void * );
#define configUSE_NEWLIB_REENTRANT 0
#endif
#ifndef configINCLUDE_STATS_FORMATTING_FUNCTIONS
#define configINCLUDE_STATS_FORMATTING_FUNCTIONS 0
#endif
/* For backward compatability. */
#define eTaskStateGet eTaskGetState