Обновление

This commit is contained in:
cfif 2025-10-29 11:17:05 +03:00
parent 9f580994f2
commit 731c0d4f3f
2 changed files with 7 additions and 5 deletions

View File

@ -18,6 +18,7 @@
#include "Indication.h" #include "Indication.h"
#include "CommandLines.h" #include "CommandLines.h"
#include "DeviceStorage.h" #include "DeviceStorage.h"
#include "SerialPortCan.h"
typedef struct { typedef struct {

View File

@ -36,16 +36,17 @@ static void Mma_InitSubSystems(tMma *env) {
Mma_InitComIntLog(env); Mma_InitComIntLog(env);
LoggerInfoStatic(&env->slog.logger, LOG_TASK_MAIN, "Инициализация подсистем") LoggerInfoStatic(&env->slog.logger, LOG_TASK_MAIN, "Инициализация подсистем")
bool result = DeviceStorage_Init(&env->storage, &env->flash->interface); bool result = DeviceStorage_Init(&env->storage, &env->flash->interface_calib, &env->flash->interface_param);
Indication_Init(&env->Indication, HVAC_DEV_MODE_STARTUP); Indication_Init(&env->Indication, HVAC_DEV_MODE_STARTUP);
/* tSerialPortIO *thisCanComPortIO = &env->serialPorts->serialPortCanIO;
ComInt_Init( ComInt_Init(
&env->comInt, &env->comInt,
&SERIAL_PORTS.Rs485_HalfDuplexIo, thisCanComPortIO,
&env->storage.publicVariablesTable,
NULL, NULL,
&SERIAL_PORTS.SerialPortUsbIO,
NULL, NULL,
&SERIAL_PORTS.cliVirtualOutIo, &SERIAL_PORTS.cliVirtualOutIo,
&env->Indication.currentModeName &env->Indication.currentModeName
@ -55,7 +56,7 @@ static void Mma_InitSubSystems(tMma *env) {
CommandLine_Init(&env->cli, &env->serialPorts->cliVirtualInIo); CommandLine_Init(&env->cli, &env->serialPorts->cliVirtualInIo);
CommandLine_StartThread(&env->cli); CommandLine_StartThread(&env->cli);
*/
LoggerInfoStatic(&env->slog.logger, LOG_TASK_MAIN, "Конец инициализации подсистем") LoggerInfoStatic(&env->slog.logger, LOG_TASK_MAIN, "Конец инициализации подсистем")
} }