GONEC_ARTERY_SpiPorts/SpiPorts.h

29 lines
473 B
C

//
// Created by cfif on 28.09.22.
//
#ifndef SPIPORTS_H
#define SPIPORTS_H
#include "SpiPortArtery.h"
typedef struct {
tGpioPin spiChipSelect1;
tGpioPin spiChipSelect2;
tGpioPin spiHold;
tGpioPin spiWp;
} tFlashPins;
typedef struct {
tSpiPortArtery flashSPI1;
tSpiPortIO flashSPI1IO;
tSpiPortArtery flashSPI2;
tSpiPortIO flashSPI2IO;
} tSpiPorts;
extern tSpiPorts SPI_PORTS;
void SpiPorts_Init(tFlashPins *pins);
#endif //SPIPORTS_H