// // Created by cfif on 05.04.2024. // #ifndef WATER_BLACKBOX2_G_COMMANDLINES_H #define WATER_BLACKBOX2_G_COMMANDLINES_H #include #include "SerialPort.h" #include "CliCmd.h" #include "CliRedirectTable.h" typedef struct { struct { tCliRedirectItem commandPrefixes[10]; uint8_t cmdRxLine[128]; } mem; tCliCmd cmd; tCliRedirectTable redirectTable; struct { osThreadId_t id; uint32_t stack[1024]; StaticTask_t controlBlock; osThreadAttr_t attr; } thread; } tCommandLine; void CommandLine_Init(tCommandLine *env, tSerialPortIO *serial); void CommandLine_StartThread(tCommandLine *env); #endif //WATER_BLACKBOX2_G_COMMANDLINES_H