Обновление

This commit is contained in:
cfif 2025-11-21 09:54:16 +03:00
parent 3bf5e07399
commit ce65695f58
2 changed files with 12 additions and 1 deletions

View File

@ -19,6 +19,7 @@
#include "DeviceStorage.h"
#include "SerialPortCan.h"
#include "CanSerialPortFrameXCP.h"
#include "CanSpamReceiver.h"
typedef struct {
@ -42,6 +43,8 @@ typedef struct {
tCanSerialPortFrameXCP CanSerialPortFrameXCP;
tCanSpamReceiver canSpamReceiver;
struct {
osThreadId_t id;
uint32_t stack[2048 * 1];

View File

@ -37,7 +37,8 @@ static void Mma_InitSubSystems(tMma *env) {
Mma_InitComIntLog(env);
LoggerInfoStatic(&env->slog.logger, LOG_TASK_MAIN, "Инициализация подсистем")
bool result = DeviceStorage_Init(&env->storage, &env->flash->interface_calib, &env->flash->interface_param, &env->slog.logger);
bool result = DeviceStorage_Init(&env->storage, &env->flash->interface_calib, &env->flash->interface_param,
&env->slog.logger);
Indication_Init(&env->Indication, HVAC_DEV_MODE_STARTUP);
@ -61,6 +62,13 @@ static void Mma_InitSubSystems(tMma *env) {
CanXcpProcessing_Listener_Start(&env->CanSerialPortFrameXCP);
CanSpamReceiver_Init(&env->canSpamReceiver,
&env->canPorts->Can0_IO);
CanSpamReceiver_StartThread(&env->canSpamReceiver);
LoggerInfoStatic(&env->slog.logger, LOG_TASK_MAIN, "Конец инициализации подсистем")
}