mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-20 05:21:59 -04:00
Changes necessary in the Win32/lwiP project to use the updated command console files.
This commit is contained in:
parent
000b4ba783
commit
e0a4cbab6f
Binary file not shown.
|
@ -125,8 +125,8 @@ extern void lwIPAppsInit( void *pvArguments );
|
||||||
xRunTimeStats command definitions respectively. These functions are not
|
xRunTimeStats command definitions respectively. These functions are not
|
||||||
necessarily reentrant! They must be used from one task only - or at least by
|
necessarily reentrant! They must be used from one task only - or at least by
|
||||||
only one task at a time. */
|
only one task at a time. */
|
||||||
static portBASE_TYPE prvTaskStatsCommand( signed char *pcWriteBuffer, size_t xWriteBufferLen );
|
static portBASE_TYPE prvTaskStatsCommand( signed char *pcWriteBuffer, size_t xWriteBufferLen, const signed char * pcCommandString );
|
||||||
static portBASE_TYPE prvRunTimeStatsCommand( signed char *pcWriteBuffer, size_t xWriteBufferLen );
|
static portBASE_TYPE prvRunTimeStatsCommand( signed char *pcWriteBuffer, size_t xWriteBufferLen, const signed char * pcCommandString );
|
||||||
|
|
||||||
/* The string that latches the current demo status. */
|
/* The string that latches the current demo status. */
|
||||||
static char *pcStatusMessage = "All tasks running without error";
|
static char *pcStatusMessage = "All tasks running without error";
|
||||||
|
@ -145,6 +145,7 @@ static const xCommandLineInput xRunTimeStats =
|
||||||
"run-time-stats",
|
"run-time-stats",
|
||||||
"run-time-stats: Displays a table showing how much processing time each FreeRTOS task has used\r\n",
|
"run-time-stats: Displays a table showing how much processing time each FreeRTOS task has used\r\n",
|
||||||
prvRunTimeStatsCommand,
|
prvRunTimeStatsCommand,
|
||||||
|
0
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Structure that defines the "task-stats" command line command. */
|
/* Structure that defines the "task-stats" command line command. */
|
||||||
|
@ -153,6 +154,7 @@ static const xCommandLineInput xTaskStats =
|
||||||
"task-stats",
|
"task-stats",
|
||||||
"task-stats: Displays a table showing the state of each FreeRTOS task\r\n",
|
"task-stats: Displays a table showing the state of each FreeRTOS task\r\n",
|
||||||
prvTaskStatsCommand,
|
prvTaskStatsCommand,
|
||||||
|
0
|
||||||
};
|
};
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
@ -316,14 +318,16 @@ unsigned long ulReturn;
|
||||||
}
|
}
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
static portBASE_TYPE prvTaskStatsCommand( signed char *pcWriteBuffer, size_t xWriteBufferLen )
|
static portBASE_TYPE prvTaskStatsCommand( signed char *pcWriteBuffer, size_t xWriteBufferLen, const signed char * pcCommandString )
|
||||||
{
|
{
|
||||||
const char *const pcHeader = "Task State Priority Stack #\r\n************************************************\r\n";
|
const char *const pcHeader = "Task State Priority Stack #\r\n************************************************\r\n";
|
||||||
|
|
||||||
configASSERT( pcWriteBuffer );
|
configASSERT( pcWriteBuffer );
|
||||||
|
|
||||||
/* This function assumes the buffer length is adequate. */
|
/* This function assumes the buffer length is adequate and does not look
|
||||||
|
for parameters. */
|
||||||
( void ) xWriteBufferLen;
|
( void ) xWriteBufferLen;
|
||||||
|
( void ) pcCommandString;
|
||||||
|
|
||||||
/* Generate a table of task stats. */
|
/* Generate a table of task stats. */
|
||||||
strcpy( pcWriteBuffer, pcHeader );
|
strcpy( pcWriteBuffer, pcHeader );
|
||||||
|
@ -335,14 +339,16 @@ const char *const pcHeader = "Task State Priority Stack #\r\n********
|
||||||
}
|
}
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
static portBASE_TYPE prvRunTimeStatsCommand( signed char *pcWriteBuffer, size_t xWriteBufferLen )
|
static portBASE_TYPE prvRunTimeStatsCommand( signed char *pcWriteBuffer, size_t xWriteBufferLen, const signed char * pcCommandString )
|
||||||
{
|
{
|
||||||
const char * const pcHeader = "Task Abs Time % Time\r\n****************************************\r\n";
|
const char * const pcHeader = "Task Abs Time % Time\r\n****************************************\r\n";
|
||||||
|
|
||||||
configASSERT( pcWriteBuffer );
|
configASSERT( pcWriteBuffer );
|
||||||
|
|
||||||
/* This function assumes the buffer length is adequate. */
|
/* This function assumes the buffer length is adequate and does not look
|
||||||
|
for parameters. */
|
||||||
( void ) xWriteBufferLen;
|
( void ) xWriteBufferLen;
|
||||||
|
( void ) pcCommandString;
|
||||||
|
|
||||||
/* Generate a table of task stats. */
|
/* Generate a table of task stats. */
|
||||||
strcpy( pcWriteBuffer, pcHeader );
|
strcpy( pcWriteBuffer, pcHeader );
|
||||||
|
|
Loading…
Reference in a new issue