Home
last modified time | relevance | path

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

/Zephyr-Core-3.4.0/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-Core-3.4.0/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
505 gpio_pin_configure_dt(&sw1_gpio, GPIO_INPUT); in configure_buttons()
508 gpio_pin_interrupt_configure_dt(&sw1_gpio, GPIO_INT_EDGE_TO_ACTIVE); in configure_buttons()
511 BIT(sw0_gpio.pin) | BIT(sw1_gpio.pin)); in configure_buttons()
/Zephyr-Core-3.4.0/samples/sensor/fxos8700-hid/src/
Dmain.c28 static const struct gpio_dt_spec sw1_gpio = GPIO_DT_SPEC_GET(SW1_NODE, gpios); variable
194 if (callbacks_configure(&sw1_gpio, &right_button, &callback[1], &def_val[1])) { in main()
/Zephyr-Core-3.4.0/samples/subsys/usb/hid-cdc/src/
Dmain.c29 static const struct gpio_dt_spec sw1_gpio = GPIO_DT_SPEC_GET(SW1_NODE, gpios); variable
576 if (callbacks_configure(&sw1_gpio, &btn1, &callback[1])) { in main()