Home
last modified time | relevance | path

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

/Zephyr-latest/tests/drivers/gpio/gpio_enable_disable_interrupt/src/
Dmain.c23 const struct gpio_dt_spec *irq_spec; member
30 fixture.irq_spec = &irq_pin; in gpio_enable_disable_interrupt_setup()
40 zassert_true(gpio_is_ready_dt(fixture->irq_spec), "GPIO device is not ready"); in gpio_enable_disable_interrupt_before()
42 zassert_ok(gpio_pin_configure_dt(fixture->irq_spec, GPIO_INPUT)); in gpio_enable_disable_interrupt_before()
43 zassert_ok(gpio_emul_input_set(fixture->irq_spec->port, fixture->irq_spec->pin, 0), in gpio_enable_disable_interrupt_before()
47 zassert_ok(gpio_pin_interrupt_configure_dt(fixture->irq_spec, GPIO_INT_DISABLE)); in gpio_enable_disable_interrupt_before()
48 gpio_init_callback(&cb_data, callback, BIT(fixture->irq_spec->pin)); in gpio_enable_disable_interrupt_before()
49 zassert_ok(gpio_add_callback(fixture->irq_spec->port, &cb_data), "failed to add callback"); in gpio_enable_disable_interrupt_before()
57 zassert_ok(gpio_remove_callback(fixture->irq_spec->port, &cb_data), in gpio_enable_disable_interrupt_after()
61 static void enable_interrupt(const struct gpio_dt_spec *irq_spec) in enable_interrupt() argument
[all …]