Обновление

This commit is contained in:
cfif 2025-10-24 12:29:49 +03:00
parent 8204dc5248
commit 9f580994f2
4 changed files with 11 additions and 2 deletions

View File

@ -17,7 +17,8 @@
#include "ComInt.h" #include "ComInt.h"
#include "Indication.h" #include "Indication.h"
#include "CommandLines.h" #include "CommandLines.h"
#include "" #include "DeviceStorage.h"
typedef struct { typedef struct {
// Преферийные интерфесы // Преферийные интерфесы
@ -26,6 +27,7 @@ typedef struct {
tCanPorts *canPorts; tCanPorts *canPorts;
tLoggerToSerialPort slog; tLoggerToSerialPort slog;
tComInt comInt; tComInt comInt;
tStorageOnFlash *flash;
tRtcs *rtcs; tRtcs *rtcs;
tAdcs *adcs; tAdcs *adcs;

View File

@ -11,7 +11,7 @@ const char LOG_TASK_MAIN[] = "Initialization task";
void Mma_InitComIntLog(tMma *env) { void Mma_InitComIntLog(tMma *env) {
Indication_Init(&env->Indication, HVAC_DEV_MODE_STARTUP);
LoggerToSerialPort_Init( LoggerToSerialPort_Init(
&env->slog, &env->slog,
0, 0,
@ -35,6 +35,11 @@ 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);
Indication_Init(&env->Indication, HVAC_DEV_MODE_STARTUP);
/* /*
ComInt_Init( ComInt_Init(
&env->comInt, &env->comInt,

View File

@ -11,5 +11,6 @@ void InitPeripheralInterfaces() {
SerialPorts_Init(); SerialPorts_Init();
CanPorts_Init(); CanPorts_Init();
Rtcs_Init(); Rtcs_Init();
StorageOnFlash_Init();
Pwms_Init(); Pwms_Init();
} }

View File

@ -11,6 +11,7 @@
#include "Rtcs.h" #include "Rtcs.h"
#include "Adcs.h" #include "Adcs.h"
#include "Pwms.h" #include "Pwms.h"
#include "StorageOnFlash.h"
void InitPeripheralInterfaces(); void InitPeripheralInterfaces();