mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-23 11:09:28 -05: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:
parent
bd56549a48
commit
0b5cd08665
1 changed files with 1 additions and 1 deletions
|
|
@ -69,6 +69,7 @@
|
||||||
static void prvUARTCommandConsoleTask( void * pvParameters );
|
static void prvUARTCommandConsoleTask( void * pvParameters );
|
||||||
void vUARTCommandConsoleStart( uint16_t usStackSize,
|
void vUARTCommandConsoleStart( uint16_t usStackSize,
|
||||||
UBaseType_t uxPriority );
|
UBaseType_t uxPriority );
|
||||||
|
void vOutputString( const char * const pcMessage );
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
@ -110,7 +111,6 @@ static void prvUARTCommandConsoleTask( void * pvParameters )
|
||||||
char * pcOutputString;
|
char * pcOutputString;
|
||||||
static char cInputString[ cmdMAX_INPUT_SIZE ], cLastInputString[ cmdMAX_INPUT_SIZE ];
|
static char cInputString[ cmdMAX_INPUT_SIZE ], cLastInputString[ cmdMAX_INPUT_SIZE ];
|
||||||
BaseType_t xReturned;
|
BaseType_t xReturned;
|
||||||
xComPortHandle xPort;
|
|
||||||
|
|
||||||
( void ) pvParameters;
|
( void ) pvParameters;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue