#include "stdio.h" #include "cmd/cmd_base.h" #include "io/io_base.h" /* Debug interface on USART1 */ void CLI_task( void *pvParameters ) { for(;;) { // Wait for newline before starting actual command processing // This way we only allocate the buffer memory when it is needed. while (fgetc(FILE_CLI) != '\n'); fprintf(FILE_CLI, "220 New session\n"); cmd_chat(FILE_CLI, 512); } }