Обновление платы на V2

This commit is contained in:
cfif 2026-05-04 15:54:33 +03:00
parent 26ec7f93e0
commit 6bca293f2f
2 changed files with 7 additions and 0 deletions

View File

@ -67,6 +67,7 @@ typedef struct {
tLin4TaskSensor linTaskSensor4;
tLin5TaskSensor linTaskSensor5;
tAdcTask adcTask0;
tAdcTask adcTask1;

View File

@ -75,6 +75,7 @@ static void Mma_InitSubSystems(tMma *env) {
GpioPinSet(&env->gpios->power.BTS5180_2EKA_TwoWayValveAndReservePowerSupply.ReservePower_EN, true);
GpioPinSet(&env->gpios->power.BTS4175SGAXUMA1_ReservePowerOutput.EN_ReservePower, true);
GpioPinSet(&env->gpios->power.BTS4175SGAXUMA1_PowerReserve.EN_PowerReserve, true);
GpioPinSet(&env->gpios->power.BTS5180_2EKA_2xChannelPTCPower.PtcRelayDriver1_EN, true);
GpioPinSet(&env->gpios->power.BTS5180_2EKA_2xChannelPTCPower.PtcRelayDriver_EN_Diag, true);
@ -177,6 +178,11 @@ static void Mma_InitSubSystems(tMma *env) {
Lin_5_Init(&env->linTaskSensor5, linData5, &env->linPorts->lin5_Io, &env->slog.logger);
// Lin5_StartThread(&env->linTaskSensor5);
// tLinData *linData6 = Lin6_Init(GetLin123CallbackHandler);
// Lin_6_Init(&env->linTaskSensor6, linData6, &env->linPorts->lin6_Io, &env->slog.logger);
// Lin6_StartThread(&env->linTaskSensor6);
Adc_0_Init(&env->adcTask0, env->ModelTask.access, &env->adcs->adc_0_IO, env->gpios, &env->slog.logger);
Adc_0_StartThread(&env->adcTask0);