No interrupt detection

Hi,

I use self bord with nrf5340 on it.

i started with project "central_and_peripheral_hr"  and added CMSIS v2 and EVENT MANAGER configuration.

The i configured interrupt with function during event_handler but the interrupt function not called(i saw with Scope the the pin interrupt pin go from low to high and back to low.).
 

#define SW0_NODE DT_ALIAS(sw0)
#if !DT_NODE_HAS_STATUS(SW0_NODE, okay)
#error "Unsupported board: sw0 devicetree alias is not defined"
#endif
static const struct gpio_dt_spec wifi_int = GPIO_DT_SPEC_GET_OR(SW0_NODE, gpios, {0});
static struct gpio_callback button_cb_data;

void cc3100_host_pin_handler(const struct device *dev, struct gpio_callback *cb,
                             uint32_t pins)
{
    LOG_INF("cc3100_host_pin_handler");
    g_pIrqEventHandler(0);
}

int init_interrupt_wifi()
{
    int ret;
    if (!device_is_ready(wifi_int.port))
    {
        LOG_ERR("Error: wifi_int device %s is not ready\n",
                wifi_int.port->name);
        return FAIL;
    }

    ret = gpio_pin_configure_dt(&wifi_int, GPIO_INPUT);
    if (ret != 0)
    {
        LOG_ERR("Error %d: failed to configure %s pin %d\n",
                ret, wifi_int.port->name, wifi_int.pin);
        return FAIL;
    }

    ret = gpio_pin_interrupt_configure_dt(&wifi_int,
                                          GPIO_INT_EDGE_BOTH);
    if (ret != 0)
    {
        LOG_ERR("Error %d: failed to configure interrupt on %s pin %d\n",
                ret, wifi_int.port->name, wifi_int.pin);
        return FAIL;
    }

    gpio_init_callback(&button_cb_data, cc3100_host_pin_handler, BIT(wifi_int.pin));
    ret = gpio_add_callback(wifi_int.port, &button_cb_data);
    if (ret != 0)
    {
        LOG_ERR("Error %d: failed to configure interrupt on %s pin %d\n",
                ret, wifi_int.port->name, wifi_int.pin);
        return FAIL;
    }
    else
        LOG_INF("Set up wifi_int at %s pin %d\n", wifi_int.port->name, wifi_int.pin);

    return SUCCESS;
}

Any idea why the function not triggered? 
Thanks
Related