Bela
Real-time, ultra-low-latency audio and sensor processing system for BeagleBone Black
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
bela_hw_settings.h
1 #pragma once
2 const unsigned int codecI2cBus = 2; // Bus for TLV320AIC3104 codec
3 const unsigned int codecI2cAddress = 0x18; // Address of TLV320AIC3104 codec
4 const unsigned int kBelaCapeButtonPin = 115; //P9.27 / P2.34 connected to The Button
5 const unsigned int kAmplifierMutePin = 61; // P8.26 controls amplifier mute
6 
7 #include <linux/version.h>
8 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 108) // first kernel we shipped with a different location of the spidevs
9 const char ctagSpidevGpioCs0[] = "/dev/spidev3.0"; // Path for SPI bus 0
10 const char ctagSpidevGpioCs1[] = "/dev/spidev3.1"; // Path for SPI bus 1
11 #else // 4.14.108
12 const char ctagSpidevGpioCs0[] = "/dev/spidev32766.0"; // Path for SPI bus 0
13 const char ctagSpidevGpioCs1[] = "/dev/spidev32766.1"; // Path for SPI bus 1
14 #endif // 4.14.108