From: richardbarry Date: Sun, 11 Dec 2011 10:23:01 +0000 (+0000) Subject: Changes necessary in the Win32/lwiP project to use the updated command console files. X-Git-Tag: V7.1.0~6 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0ea70884315783b984267165b333405217a5f953;p=freertos Changes necessary in the Win32/lwiP project to use the updated command console files. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1654 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Demo/WIN32-MSVC-lwIP/WIN32.suo b/Demo/WIN32-MSVC-lwIP/WIN32.suo index e782e64f7..05a748979 100644 Binary files a/Demo/WIN32-MSVC-lwIP/WIN32.suo and b/Demo/WIN32-MSVC-lwIP/WIN32.suo differ diff --git a/Demo/WIN32-MSVC-lwIP/main.c b/Demo/WIN32-MSVC-lwIP/main.c index 76e8b285a..82239b677 100644 --- a/Demo/WIN32-MSVC-lwIP/main.c +++ b/Demo/WIN32-MSVC-lwIP/main.c @@ -125,8 +125,8 @@ extern void lwIPAppsInit( void *pvArguments ); xRunTimeStats command definitions respectively. These functions are not necessarily reentrant! They must be used from one task only - or at least by only one task at a time. */ -static portBASE_TYPE prvTaskStatsCommand( signed char *pcWriteBuffer, size_t xWriteBufferLen ); -static portBASE_TYPE prvRunTimeStatsCommand( 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, const signed char * pcCommandString ); /* The string that latches the current demo status. */ static char *pcStatusMessage = "All tasks running without error"; @@ -145,6 +145,7 @@ static const xCommandLineInput xRunTimeStats = "run-time-stats", "run-time-stats: Displays a table showing how much processing time each FreeRTOS task has used\r\n", prvRunTimeStatsCommand, + 0 }; /* Structure that defines the "task-stats" command line command. */ @@ -153,6 +154,7 @@ static const xCommandLineInput xTaskStats = "task-stats", "task-stats: Displays a table showing the state of each FreeRTOS task\r\n", 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"; 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 ) pcCommandString; /* Generate a table of task stats. */ 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"; 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 ) pcCommandString; /* Generate a table of task stats. */ strcpy( pcWriteBuffer, pcHeader );