zephyr::raw

Function gpio_pin_interrupt_configure_dt

source
pub unsafe extern "C" fn gpio_pin_interrupt_configure_dt(
    spec: *const gpio_dt_spec,
    flags: u32,
) -> i32
Expand description

@brief Configure pin interrupts from a @p gpio_dt_spec.

@funcprops \isr_ok

This is equivalent to:

gpio_pin_interrupt_configure(spec->port, spec->pin, flags);

The spec->dt_flags value is not used.

@param spec GPIO specification from devicetree @param flags interrupt configuration flags @return a value from gpio_pin_interrupt_configure()