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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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