32 lines
516 B
C
32 lines
516 B
C
//
|
|
// Created by cfif on 28.09.22.
|
|
//
|
|
|
|
#ifndef SPIPORTS_H
|
|
#define SPIPORTS_H
|
|
|
|
#include "SpiPortNation.h"
|
|
|
|
typedef struct {
|
|
tGpioPin spiChipSelect;
|
|
tGpioPin int1;
|
|
} tAccelPins;
|
|
|
|
typedef struct {
|
|
tGpioPin spiChipSelect;
|
|
//tGpioPin int1;
|
|
} tFlashPins;
|
|
|
|
typedef struct {
|
|
tSpiPortNation accelHW;
|
|
tSpiPortIO accelIO;
|
|
tSpiPortNation flashHW;
|
|
tSpiPortIO flashIO;
|
|
} tSpiPorts;
|
|
|
|
extern tSpiPorts SPI_PORTS;
|
|
|
|
void SpiPorts_Init(tAccelPins *accelPins,tFlashPins *flashPins);
|
|
|
|
#endif //SPIPORTS_H
|