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:
dougwfoster
2024-01-08 08:38:49 -06:00
committed by GitHub
parent bd56549a48
commit 0b5cd08665

View File

@ -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;