25 lines
475 B
C
25 lines
475 B
C
//
|
|
// Created by cfif on 05.05.23.
|
|
//
|
|
|
|
#include "PeripheralInterfaces.h"
|
|
|
|
const DMA_InitType dmaInitCfg =
|
|
{
|
|
.eArbitrationAlgorithm = DMA_ARBITRATION_ALGORITHM_FIXED_PRIORITY,
|
|
.bHaltOnError = false
|
|
};
|
|
|
|
void InitPeripheralInterfaces() {
|
|
Gpios_Init();
|
|
|
|
DMA_Init(DMA_INSTANCE_0, &dmaInitCfg);
|
|
|
|
SerialPorts_Init();
|
|
CanPorts_Init();
|
|
|
|
Adcs_Init();
|
|
Rtcs_Init();
|
|
// StorageOnFlash_Init();
|
|
// Pwms_Init();
|
|
} |