Обновление

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

View File

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

View File

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

View File

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