2 * @file bbb_pin_defines.h
3 * @brief Defines pins on Beaglebone Black
6 #ifndef _BBB_PIN_DEFINES_H
7 #define _BBB_PIN_DEFINES_H
12 #define GPIO0_2 2 // Used for PWM
13 #define GPIO0_3 3 // Used for PWM
114 /** Number of useable GPIO pins **/
115 #define GPIO_NUM_PINS 50
118 #define GPIO_DEVICE_PATH "/sys/class/gpio"
131 /** Number of ADC pins **/
132 #define ADC_NUM_PINS 8
134 /** Path to export ADCs with**/
135 #define ADC_EXPORT_PATH "/sys/devices/bone_capemgr.9/slots"
136 /** Path at which ADCs appear **/
137 #define ADC_DEVICE_PATH "/sys/devices/ocp.3/helper.16"
142 // No other PWM pins work!
144 /** Number of PWM pins **/
145 #define PWM_NUM_PINS 2
147 /** Path to PWM sysfs **/
148 #define PWM_DEVICE_PATH "/sys/class/pwm"
152 #endif //_BBB_PIN_DEFINES_H