Searched refs:sw1_gpio (Results 1 – 2 of 2) sorted by relevance
29 static const struct gpio_dt_spec sw1_gpio = GPIO_DT_SPEC_GET(DT_ALIAS(sw1), gpios); variable102 gpio_pin_configure_dt(&sw1_gpio, GPIO_INPUT); in main()105 gpio_pin_interrupt_configure_dt(&sw1_gpio, GPIO_INT_EDGE_TO_ACTIVE); in main()108 BIT(sw0_gpio.pin) | BIT(sw1_gpio.pin)); in main()
121 static const struct gpio_dt_spec sw1_gpio = GPIO_DT_SPEC_GET(DT_ALIAS(sw1), gpios); variable509 gpio_pin_configure_dt(&sw1_gpio, GPIO_INPUT); in configure_buttons()512 gpio_pin_interrupt_configure_dt(&sw1_gpio, GPIO_INT_EDGE_TO_ACTIVE); in configure_buttons()515 BIT(sw0_gpio.pin) | BIT(sw1_gpio.pin)); in configure_buttons()