|
@@ -391,6 +391,16 @@ static const CLI_Command_Definition_t prvUPSCommandDefinition =
|
|
|
2 /* Two parameters are expected, which can take any value. */
|
|
|
};
|
|
|
|
|
|
+/* Structure that defines the "quit" command line command. This
|
|
|
+generates a table that shows how much run time each task has */
|
|
|
+static const CLI_Command_Definition_t prvQuitCommandDefinition =
|
|
|
+{
|
|
|
+ ( const int8_t * const ) "quit", /* The command string to type. */
|
|
|
+ ( const int8_t * const ) "\tquit: завершение сессии\r\n",
|
|
|
+ NULL, /* The function to run. */
|
|
|
+ -1 /* The user can enter any number of commands. */
|
|
|
+};
|
|
|
+
|
|
|
/*-----------------------------------------------------------*/
|
|
|
|
|
|
void vRegisterCLICommands( void )
|
|
@@ -412,6 +422,7 @@ void vRegisterCLICommands( void )
|
|
|
FreeRTOS_CLIRegisterCommand( &prvSensorCommandDefinition );
|
|
|
FreeRTOS_CLIRegisterCommand( &prvUploadCommandDefinition );
|
|
|
FreeRTOS_CLIRegisterCommand( &prvUPSCommandDefinition );
|
|
|
+ FreeRTOS_CLIRegisterCommand( &prvQuitCommandDefinition );
|
|
|
}
|
|
|
/*-----------------------------------------------------------*/
|
|
|
|