Обновление
This commit is contained in:
parent
d7999dd413
commit
b3698a506a
|
|
@ -28,6 +28,7 @@
|
||||||
#include "Model_Task.h"
|
#include "Model_Task.h"
|
||||||
#include "Model_actuator.h"
|
#include "Model_actuator.h"
|
||||||
#include "CanUds.h"
|
#include "CanUds.h"
|
||||||
|
#include "DiagnosticTask.h"
|
||||||
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
@ -67,6 +68,8 @@ typedef struct {
|
||||||
|
|
||||||
tModelTask ModelTask;
|
tModelTask ModelTask;
|
||||||
|
|
||||||
|
tDiagnostic Diagnostic;
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
osThreadId_t id;
|
osThreadId_t id;
|
||||||
uint32_t stack[1024 * 1];
|
uint32_t stack[1024 * 1];
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,9 @@ static void Mma_InitSubSystems(tMma *env) {
|
||||||
CommandLine_Init(&env->cli, &env->serialPorts->SerialPortLog_IO, &env->serialPorts->cliVirtualPortOut_Io);
|
CommandLine_Init(&env->cli, &env->serialPorts->SerialPortLog_IO, &env->serialPorts->cliVirtualPortOut_Io);
|
||||||
CommandLine_StartThread(&env->cli);
|
CommandLine_StartThread(&env->cli);
|
||||||
|
|
||||||
|
|
||||||
|
Diagnostic_Init(&env->Diagnostic, &env->slog.logger);
|
||||||
|
|
||||||
CanSerialPortFrameXcpInit(
|
CanSerialPortFrameXcpInit(
|
||||||
&env->CanSerialPortFrameXCP,
|
&env->CanSerialPortFrameXCP,
|
||||||
&env->canPorts->Can0_IO,
|
&env->canPorts->Can0_IO,
|
||||||
|
|
@ -68,6 +71,7 @@ static void Mma_InitSubSystems(tMma *env) {
|
||||||
|
|
||||||
CanUds_Init(
|
CanUds_Init(
|
||||||
&env->canUds,
|
&env->canUds,
|
||||||
|
&env->Diagnostic,
|
||||||
&env->canPorts->Can0_IO,
|
&env->canPorts->Can0_IO,
|
||||||
&env->storage,
|
&env->storage,
|
||||||
&env->slog.logger);
|
&env->slog.logger);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue