mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2025-08-06 18:24:41 +08:00
Improvement to UARTCommandConsole.c (FreeRTOS#548) (#1147)
- Removed the function scope 'xPort' variable within FreeRTOS+CLI task in order for task to use the static file scope 'xPort' variable. - Added a prototype of vOutputString in UARTCommandConsole.c
This commit is contained in:
@ -69,6 +69,7 @@
|
||||
static void prvUARTCommandConsoleTask( void * pvParameters );
|
||||
void vUARTCommandConsoleStart( uint16_t usStackSize,
|
||||
UBaseType_t uxPriority );
|
||||
void vOutputString( const char * const pcMessage );
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
@ -110,7 +111,6 @@ static void prvUARTCommandConsoleTask( void * pvParameters )
|
||||
char * pcOutputString;
|
||||
static char cInputString[ cmdMAX_INPUT_SIZE ], cLastInputString[ cmdMAX_INPUT_SIZE ];
|
||||
BaseType_t xReturned;
|
||||
xComPortHandle xPort;
|
||||
|
||||
( void ) pvParameters;
|
||||
|
||||
|
Reference in New Issue
Block a user