zephyr::raw

Function gpio_add_callback_dt

source
pub unsafe extern "C" fn gpio_add_callback_dt(
    spec: *const gpio_dt_spec,
    callback: *mut gpio_callback,
) -> i32
Expand description

@brief Add an application callback.

This is equivalent to:

gpio_add_callback(spec->port, callback);

@param spec GPIO specification from devicetree. @param callback A valid application’s callback structure pointer. @return a value from gpio_add_callback().