#ifndef SPI_ADI
#define SPI_ADI

// HSPI
// uninitalised pointers to SPI objects
SPIClass *hspi = NULL;
static const int spiClk = 1000000; // 1 MHz

// MCP7940
#include "TimeLib.h"
// tmElements_t dt;
// #define RTC_CS 22
// #define RLY_CS 25
#define IOEXP_CS 2
#define RF_CS 15
// #define ADC_CS 4
// #define CAN_CS 4

#define IOEXP_TRIS 0x4F // was 47
// uint8_t spi_readwrite(uint8_t reg);
#endif
