Home
last modified time | relevance | path

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

/Zephyr-latest/samples/boards/bbc/microbit/sound/src/
Dmain.c29 static const struct gpio_dt_spec sw1_gpio = GPIO_DT_SPEC_GET(DT_ALIAS(sw1), gpios); variable
102 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()
/Zephyr-latest/samples/boards/bbc/microbit/pong/src/
Dmain.c121 static const struct gpio_dt_spec sw1_gpio = GPIO_DT_SPEC_GET(DT_ALIAS(sw1), gpios); variable
509 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()