Lines Matching defs:gpio
46 int connected; /* is gpio being used? */
54 int strobing; /* is gpio strobing? */
83 bcmgpio_fd = open("/dev/gpio", O_RDWR);
85 GPIO_ERROR ("Failed to open /dev/gpio\n");
103 struct gpio_ioctl gpio;
106 gpio.val = val;
107 gpio.mask = mask;
129 if (ioctl(bcmgpio_fd, type, &gpio) < 0) {
133 return (gpio.val);
223 * releasing the gpio doesn't change the current value on the GPIO last write value
390 /* Return gpio pin number assigned to the named pin */
394 * gpio<N>=pin_name,pin_name
396 * This format allows multiple features to share the gpio with
399 * 'def_pin' is returned if a specific gpio is not defined for the requested functionality
411 sprintf(name, "gpio%d", pin);
419 sprintf(name, "gpio%d", def_pin);