Home
last modified time | relevance | path

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

/mcuboot-latest/samples/runtime-source/zephyr/hooks/
Dhooks.c28 static struct gpio_dt_spec sw1_spec = GPIO_DT_SPEC_GET(SW1_NODE, gpios); variable
43 if (gpio_pin_configure_dt(&sw1_spec, GPIO_INPUT) == 0) { in boot_go_hook()
44 if (gpio_pin_get_dt(&sw1_spec) == 1) { in boot_go_hook()
47 sw1_spec.port->name, known_ids[current_id]); in boot_go_hook()
50 sw1_spec.port->name); in boot_go_hook()