HVAC_DEV_Command/CommandLines.h

37 lines
719 B
C

//
// Created by cfif on 05.04.2024.
//
#ifndef WATER_BLACKBOX2_G_COMMANDLINES_H
#define WATER_BLACKBOX2_G_COMMANDLINES_H
#include <cmsis_os.h>
#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