3 * @brief Definition of functions for controlling pins on the Beaglebone Black
11 #include "bbb_pin_defines.h"
13 // Initialise / Deinitialise functions
14 extern void GPIO_Export(int pin);
15 extern void GPIO_Unexport(int pin);
17 extern void PWM_Export(int pin);
18 extern void PWM_Unexport(int pin);
20 extern void ADC_Export();
21 extern void ADC_Unexport();
23 // Pin reading/setting functions
24 extern bool GPIO_Read(int pin);
25 extern void GPIO_Set(int pin, bool value);
27 extern int ADC_Read(int pin);
29 extern void PWM_Set(int pin, bool polarity, long period, long duty); // period and duty are in ns
30 extern void PWM_Stop(int pin);