Voss Connection Detection
1
Detect a connector click using realtime code on Bela hardware
|
Go to the documentation of this file.
44 #define SYSFS_GPIO_DIR "/sys/class/gpio"
45 #define POLL_TIMEOUT (3 * 1000)
47 #define SYSFS_OMAP_MUX_DIR "/sys/kernel/debug/omap_mux/"
int gpio_set_value(unsigned int gpio, PIN_VALUE value)
int gpio_get_value(unsigned int gpio, unsigned int *value)
int gpio_set_edge(unsigned int gpio, char *edge)
int gpio_set_dir(unsigned int gpio, PIN_DIRECTION out_flag)
int gpio_omap_mux_setup(const char *omap_pin0_name, const char *mode)
int gpio_export(unsigned int gpio)
int gpio_fd_close(int fd)
int gpio_fd_open(unsigned int gpio)
int gpio_unexport(unsigned int gpio)