27 lines
493 B
C
27 lines
493 B
C
//
|
|
// Created by ilya on 25.03.24.
|
|
//
|
|
|
|
#ifndef SMART_COMPONENTS_SPIPORTS_H
|
|
#define SMART_COMPONENTS_SPIPORTS_H
|
|
|
|
#include "SpiPortArtery.h"
|
|
|
|
typedef struct {
|
|
tGpioPin spi1ChipSelect;
|
|
tGpioPin spi2ChipSelect;
|
|
} tSpiChipSelectPins;
|
|
|
|
typedef struct {
|
|
tSpiPortArtery Spi1;
|
|
tSpiPortIO Spi1_IO;
|
|
|
|
tSpiPortArtery Spi2;
|
|
tSpiPortIO Spi2_IO;
|
|
} tSpiPorts;
|
|
|
|
extern tSpiPorts SPI_PORTS;
|
|
void SpiPorts_Init(tSpiChipSelectPins *SpiChipSelectPins);
|
|
|
|
#endif //SMART_COMPONENTS_SPIPORTS_H
|