50 lines
1.1 KiB
C
50 lines
1.1 KiB
C
//
|
|
// Created by cfif on 13.03.2026.
|
|
//
|
|
|
|
#ifndef HVAC_DEV_ARBITERCOMMAND_H
|
|
#define HVAC_DEV_ARBITERCOMMAND_H
|
|
|
|
#include <cmsis_os.h>
|
|
#include "SerialPortIO.h"
|
|
#include "AtCmdCommon.h"
|
|
#include "CanSerialPortFrame.h"
|
|
|
|
typedef struct {
|
|
|
|
tAtCmd At;
|
|
uint8_t AtRx[255];
|
|
uint8_t AtTx[255];
|
|
|
|
tSerialPortIO *ioUART;
|
|
tSerialPortFrameIO *ioCAN;
|
|
uint8_t numberMailBox;
|
|
osMutexId_t access;
|
|
|
|
struct {
|
|
osThreadId_t id;
|
|
uint32_t stack[512];
|
|
StaticTask_t controlBlock;
|
|
osThreadAttr_t attr;
|
|
} thread;
|
|
|
|
|
|
} tTaskSerial;
|
|
|
|
void TaskSerialUART_Init(tTaskSerial *env,
|
|
uint8_t numberMailBox,
|
|
tSerialPortIO *ioUART,
|
|
tSerialPortFrameIO *ioCAN
|
|
);
|
|
void TaskSerialUART_StartThread(tTaskSerial *env);
|
|
|
|
void TaskSerialUSB_Init(tTaskSerial *env,
|
|
uint8_t numberMailBox,
|
|
tSerialPortIO *ioUART,
|
|
tSerialPortFrameIO *ioCAN
|
|
);
|
|
void TaskSerialUSB_StartThread(tTaskSerial *env);
|
|
|
|
|
|
#endif //HVAC_DEV_ARBITERCOMMAND_H
|