mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-20 01:58:32 -04:00
Comment the command line interpreter and lwIP sockets based server code.
This commit is contained in:
parent
723bed71bf
commit
5ca1d4194d
10 changed files with 271 additions and 245 deletions
|
@ -102,6 +102,7 @@
|
|||
|
||||
/* lwIP includes. */
|
||||
#include "lwip/tcpip.h"
|
||||
#include "lwIP_Apps.h"
|
||||
|
||||
/* Utils includes. */
|
||||
#include "CommandInterpreter.h"
|
||||
|
@ -318,7 +319,7 @@ unsigned long ulReturn;
|
|||
static const signed char *prvTaskStatsCommand( void )
|
||||
{
|
||||
static signed char *pcReturn = NULL;
|
||||
static char cTxBuffer[ 1024 ]; /*_RB_ Remove this. */
|
||||
const char *const pcHeader = "Task State Priority Stack #\r\n************************************************\r\n";
|
||||
|
||||
/* This is the callback function that is executed when the command line
|
||||
command defined by the xTaskStats structure is entered. This function
|
||||
|
@ -328,8 +329,12 @@ static char cTxBuffer[ 1024 ]; /*_RB_ Remove this. */
|
|||
if( pcReturn == NULL )
|
||||
{
|
||||
/* Generate a table of task state. */
|
||||
vTaskList( cTxBuffer );
|
||||
pcReturn = cTxBuffer;
|
||||
pcReturn = pcLwipAppsBlockingGetTxBuffer();
|
||||
if( pcReturn != NULL )
|
||||
{
|
||||
strcpy( pcReturn, pcHeader );
|
||||
vTaskList( pcReturn + strlen( pcHeader ) );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -337,6 +342,7 @@ static char cTxBuffer[ 1024 ]; /*_RB_ Remove this. */
|
|||
called it just resets itself and returns NULL to say no more strings
|
||||
are going to be generated. */
|
||||
pcReturn = NULL;
|
||||
vLwipAppsReleaseTxBuffer();
|
||||
}
|
||||
|
||||
return pcReturn;
|
||||
|
@ -346,8 +352,7 @@ static char cTxBuffer[ 1024 ]; /*_RB_ Remove this. */
|
|||
static const signed char *prvRunTimeStatsCommand( void )
|
||||
{
|
||||
static signed char *pcReturn = NULL;
|
||||
static char cTxBuffer[ 1024 ]; /*_RB_ Remove this. */
|
||||
|
||||
const char * const pcHeader = "Task Abs Time % Time\r\n****************************************\r\n";
|
||||
|
||||
/* This is the callback function that is executed when the command line
|
||||
command defined by the xRunTimeStats structure is entered. This function
|
||||
|
@ -358,8 +363,12 @@ static char cTxBuffer[ 1024 ]; /*_RB_ Remove this. */
|
|||
if( pcReturn == NULL )
|
||||
{
|
||||
/* Generate a table of run time stats. */
|
||||
vTaskGetRunTimeStats( cTxBuffer );
|
||||
pcReturn = cTxBuffer;
|
||||
pcReturn = pcLwipAppsBlockingGetTxBuffer();
|
||||
if( pcReturn != NULL )
|
||||
{
|
||||
strcpy( pcReturn, pcHeader );
|
||||
vTaskGetRunTimeStats( pcReturn + strlen( pcHeader ) );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -367,6 +376,7 @@ static char cTxBuffer[ 1024 ]; /*_RB_ Remove this. */
|
|||
called it just resets itself and returns NULL to say no more strings
|
||||
are going to be generated. */
|
||||
pcReturn = NULL;
|
||||
vLwipAppsReleaseTxBuffer();
|
||||
}
|
||||
|
||||
return pcReturn;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue