Обновление
This commit is contained in:
parent
7023f641fa
commit
80cfd57ec2
|
|
@ -6,12 +6,16 @@
|
|||
void Mma_Init(
|
||||
tMma *env,
|
||||
tGpios *gpios,
|
||||
tAdcs *adcs,
|
||||
tSerialPorts *serialPorts,
|
||||
tCanPorts *canPorts,
|
||||
tRtcs *rtcs
|
||||
) {
|
||||
env->gpios = gpios;
|
||||
env->serialPorts = serialPorts;
|
||||
env->canPorts = canPorts;
|
||||
env->rtcs = rtcs;
|
||||
env->adcs = adcs;
|
||||
|
||||
InitThreadAtrStatic(&env->thread.attr, "Mma", env->thread.controlBlock, env->thread.stack, osPriorityNormal);
|
||||
env->thread.id = 0;
|
||||
|
|
|
|||
|
|
@ -22,10 +22,12 @@ typedef struct {
|
|||
// Преферийные интерфесы
|
||||
tGpios *gpios;
|
||||
tSerialPorts *serialPorts;
|
||||
tCanPorts *canPorts;
|
||||
tLoggerToSerialPort slog;
|
||||
tComInt comInt;
|
||||
|
||||
tRtcs *rtcs;
|
||||
tAdcs *adcs;
|
||||
|
||||
tPowerManagement power;
|
||||
|
||||
|
|
@ -48,7 +50,9 @@ typedef struct {
|
|||
void Mma_Init(
|
||||
tMma *env,
|
||||
tGpios *gpios,
|
||||
tAdcs *adcs,
|
||||
tSerialPorts *serialPorts,
|
||||
tCanPorts *canPorts,
|
||||
tRtcs *rtcs
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@
|
|||
|
||||
void InitPeripheralInterfaces() {
|
||||
Gpios_Init();
|
||||
Adcs_Init();
|
||||
SerialPorts_Init();
|
||||
CanPorts_Init();
|
||||
Rtcs_Init();
|
||||
}
|
||||
|
|
@ -7,7 +7,9 @@
|
|||
|
||||
#include "Gpios.h"
|
||||
#include "SerialPorts.h"
|
||||
#include "CanPorts.h"
|
||||
#include "Rtcs.h"
|
||||
#include "Adcs.h"
|
||||
|
||||
void InitPeripheralInterfaces();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue