xRunTimeStats command definitions respectively. These functions are not \r
necessarily reentrant! They must be used from one task only - or at least by \r
only one task at a time. */\r
-static portBASE_TYPE prvTaskStatsCommand( signed char *pcWriteBuffer, size_t xWriteBufferLen );\r
-static portBASE_TYPE prvRunTimeStatsCommand( signed char *pcWriteBuffer, size_t xWriteBufferLen );\r
+static portBASE_TYPE prvTaskStatsCommand( signed char *pcWriteBuffer, size_t xWriteBufferLen, const signed char * pcCommandString );\r
+static portBASE_TYPE prvRunTimeStatsCommand( signed char *pcWriteBuffer, size_t xWriteBufferLen, const signed char * pcCommandString );\r
\r
/* The string that latches the current demo status. */\r
static char *pcStatusMessage = "All tasks running without error";\r
"run-time-stats",\r
"run-time-stats: Displays a table showing how much processing time each FreeRTOS task has used\r\n",\r
prvRunTimeStatsCommand,\r
+ 0\r
};\r
\r
/* Structure that defines the "task-stats" command line command. */\r
"task-stats",\r
"task-stats: Displays a table showing the state of each FreeRTOS task\r\n",\r
prvTaskStatsCommand,\r
+ 0\r
};\r
\r
/*-----------------------------------------------------------*/\r
}\r
/*-----------------------------------------------------------*/\r
\r
-static portBASE_TYPE prvTaskStatsCommand( signed char *pcWriteBuffer, size_t xWriteBufferLen )\r
+static portBASE_TYPE prvTaskStatsCommand( signed char *pcWriteBuffer, size_t xWriteBufferLen, const signed char * pcCommandString )\r
{\r
const char *const pcHeader = "Task State Priority Stack #\r\n************************************************\r\n";\r
\r
configASSERT( pcWriteBuffer );\r
\r
- /* This function assumes the buffer length is adequate. */\r
+ /* This function assumes the buffer length is adequate and does not look\r
+ for parameters. */\r
( void ) xWriteBufferLen;\r
+ ( void ) pcCommandString;\r
\r
/* Generate a table of task stats. */\r
strcpy( pcWriteBuffer, pcHeader );\r
}\r
/*-----------------------------------------------------------*/\r
\r
-static portBASE_TYPE prvRunTimeStatsCommand( signed char *pcWriteBuffer, size_t xWriteBufferLen )\r
+static portBASE_TYPE prvRunTimeStatsCommand( signed char *pcWriteBuffer, size_t xWriteBufferLen, const signed char * pcCommandString )\r
{\r
const char * const pcHeader = "Task Abs Time % Time\r\n****************************************\r\n";\r
\r
configASSERT( pcWriteBuffer );\r
\r
- /* This function assumes the buffer length is adequate. */\r
+ /* This function assumes the buffer length is adequate and does not look\r
+ for parameters. */\r
( void ) xWriteBufferLen;\r
+ ( void ) pcCommandString;\r
\r
/* Generate a table of task stats. */\r
strcpy( pcWriteBuffer, pcHeader );\r