3 const unsigned int codecI2cBus = 2;
4 const unsigned int kBelaCapeButtonPin = 115;
5 const unsigned int kAmplifierMutePin = 61;
6 const unsigned int kSpiDacChipSelectPin = 5;
7 const unsigned int kSpiAdcChipSelectPin = 48;
9 const unsigned int kUserLedGpioPin = 56;
10 const unsigned int kUserLedNumber = 3;
11 const char kUserLedDefaultTrigger[] =
"mmc1";
12 const unsigned int tlv320CodecI2cAddress = 0x18;
13 const unsigned int es9080CodecAddress = 0x4c;
14 const unsigned int es9080CodecResetPin = 11;
16 #include <linux/version.h>
17 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 108) // first kernel we shipped with a different location of the spidevs
18 const char ctagSpidevGpioCs0[] =
"/dev/spidev3.0";
19 const char ctagSpidevGpioCs1[] =
"/dev/spidev3.1";
21 const char ctagSpidevGpioCs0[] =
"/dev/spidev32766.0";
22 const char ctagSpidevGpioCs1[] =
"/dev/spidev32766.1";