добавлена инициализация кан - интерфейсов

This commit is contained in:
parent beaea86533
commit 2aa84d9dd3
2 changed files with 3 additions and 0 deletions

View File

@ -197,6 +197,7 @@ void Mma_StartupAudioSubsystem(tMma *env) {
static void Mma_StartupDevices(tMma *env) { static void Mma_StartupDevices(tMma *env) {
LoggerInfoStatic(LOGGER, LOG_SIGN, "Запуск устройств...") LoggerInfoStatic(LOGGER, LOG_SIGN, "Запуск устройств...")
Accel_StartDevice(&env->accel); Accel_StartDevice(&env->accel);
LoggerInfoStatic(LOGGER, LOG_SIGN, "Запуск устройств завершен") LoggerInfoStatic(LOGGER, LOG_SIGN, "Запуск устройств завершен")
} }

View File

@ -3,6 +3,7 @@
// //
#include "PeripheralInterfaces.h" #include "PeripheralInterfaces.h"
#include "DevRtc.h" #include "DevRtc.h"
#include "CanSerialPorts.h"
//#include "main2.h" //#include "main2.h"
void InitPeripheralInterfaces() { void InitPeripheralInterfaces() {
@ -11,6 +12,7 @@ void InitPeripheralInterfaces() {
SerialPorts_Init(&GPIOS.comIntDir); SerialPorts_Init(&GPIOS.comIntDir);
I2cPorts_Init(); I2cPorts_Init();
SpiPorts_Init(&GPIOS.accel, &GPIOS.flash); SpiPorts_Init(&GPIOS.accel, &GPIOS.flash);
CanSerialPorts_Init();
StorageOnFlash_Init(); StorageOnFlash_Init();
// mainUsb(); // mainUsb();
Rtc_Init(); Rtc_Init();