Home
last modified time | relevance | path

Searched refs:gpio_spec (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/drivers/input/
Dinput_gpio_keys.c142 static int gpio_keys_interrupt_configure(const struct gpio_dt_spec *gpio_spec, in gpio_keys_interrupt_configure() argument
147 gpio_init_callback(&cb->gpio_cb, gpio_keys_interrupt, BIT(gpio_spec->pin)); in gpio_keys_interrupt_configure()
149 ret = gpio_add_callback(gpio_spec->port, &cb->gpio_cb); in gpio_keys_interrupt_configure()
155 cb->pin_state = gpio_pin_get_dt(gpio_spec); in gpio_keys_interrupt_configure()
157 LOG_DBG("port=%s, pin=%d", gpio_spec->port->name, gpio_spec->pin); in gpio_keys_interrupt_configure()
159 ret = gpio_pin_interrupt_configure_dt(gpio_spec, GPIO_INT_EDGE_BOTH); in gpio_keys_interrupt_configure()
/Zephyr-latest/modules/openthread/platform/
Ddiag.c166 static const struct gpio_dt_spec gpio_spec[] = { variable
172 if (gpio_idx >= ARRAY_SIZE(gpio_spec)) { in gpio_get_spec()
176 *spec = &gpio_spec[gpio_idx]; in gpio_get_spec()