Обновление
This commit is contained in:
parent
8204dc5248
commit
9f580994f2
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -11,5 +11,6 @@ void InitPeripheralInterfaces() {
|
||||||
SerialPorts_Init();
|
SerialPorts_Init();
|
||||||
CanPorts_Init();
|
CanPorts_Init();
|
||||||
Rtcs_Init();
|
Rtcs_Init();
|
||||||
|
StorageOnFlash_Init();
|
||||||
Pwms_Init();
|
Pwms_Init();
|
||||||
}
|
}
|
||||||
|
|
@ -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();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue