Searched refs:button_gpio (Results 1 – 2 of 2) sorted by relevance
24 static struct gpio_dt_spec button_gpio = GPIO_DT_SPEC_GET_OR( variable71 if (gpio_is_ready_dt(&button_gpio)) { in main()74 err = gpio_pin_configure_dt(&button_gpio, GPIO_INPUT); in main()81 BIT(button_gpio.pin)); in main()83 err = gpio_add_callback(button_gpio.port, &button_callback); in main()89 err = gpio_pin_interrupt_configure_dt(&button_gpio, in main()
27 static struct gpio_dt_spec button_gpio = GPIO_DT_SPEC_GET_OR( variable159 if (button_gpio.port == NULL) { in config_button()164 if (!gpio_is_ready_dt(&button_gpio)) { in config_button()169 err = gpio_pin_configure_dt(&button_gpio, GPIO_INPUT); in config_button()176 BIT(button_gpio.pin)); in config_button()178 err = gpio_add_callback(button_gpio.port, &button_callback); in config_button()184 err = gpio_pin_interrupt_configure_dt(&button_gpio, in config_button()