This commit is contained in:
cfif 2026-03-30 16:03:37 +03:00
parent e0fb372c8b
commit dd8caf4c53
4 changed files with 7 additions and 0 deletions

View File

@ -8,11 +8,13 @@ void Mma_Init(
tGpios *gpios,
tSerialPorts *serialPorts,
tCanPorts *canPorts,
tSpiPorts *spiPorts,
tRtcs *rtcs
) {
env->gpios = gpios;
env->serialPorts = serialPorts;
env->canPorts = canPorts;
env->spiPorts = spiPorts;
env->rtcs = rtcs;
InitThreadAtrStatic(&env->thread.attr, "Mma", env->thread.controlBlock, env->thread.stack, osPriorityNormal);

View File

@ -19,11 +19,13 @@
#include "Indication.h"
#include "CommandLines.h"
#include "ArbiterCommand.h"
#include "SpiPorts.h"
typedef struct {
// Преферийные интерфесы
tGpios *gpios;
tSerialPorts *serialPorts;
tSpiPorts *spiPorts;
tCanPorts *canPorts;
tLoggerToSerialPortV2 slog;
tComInt comInt;
@ -64,6 +66,7 @@ void Mma_Init(
tGpios *gpios,
tSerialPorts *serialPorts,
tCanPorts *canPorts,
tSpiPorts *spiPorts,
tRtcs *rtcs
);

View File

@ -9,5 +9,6 @@ void InitPeripheralInterfaces() {
Gpios_Init();
SerialPorts_Init(&GPIOS.comIntDir);
CanPorts_Init();
SpiPorts_Init(&GPIOS.SpiChipSelectPins);
Rtcs_Init();
}

View File

@ -8,6 +8,7 @@
#include "Gpios.h"
#include "SerialPorts.h"
#include "CanPorts.h"
#include "SpiPorts.h"
#include "Rtcs.h"
void InitPeripheralInterfaces();