[][src]Function rpi_pico_sdk_sys::gpio_set_irq_enabled_with_callback

pub unsafe extern "C" fn gpio_set_irq_enabled_with_callback(
    gpio: uint,
    events: u32,
    enabled: bool,
    callback: gpio_irq_callback_t
)

\brief Enable interrupts for specified GPIO \ingroup hardware_gpio

\note The IO IRQs are independent per-processor. This configures IRQs for the processor that calls the function.

\param gpio GPIO number \param events Which events will cause an interrupt See \ref gpio_set_irq_enabled for details. \param enabled Enable or disable flag \param callback user function to call on GPIO irq. Note only one of these can be set per processor.

\note Currently the GPIO parameter is ignored, and this callback will be called for any enabled GPIO IRQ on any pin.