irq init as below:
void irq_Handler(nrf_drv_gpiote_pin_t pin, nrf_gpiote_polarity_t action)
{
bool irq_level = nrfx_gpiote_in_is_set(pin);
NRF_LOG_INFO("irq_level = %d", irq_level);
if(!irq_level)
return;
if (pin == INT_num){
/**/
}
}
if (nrfx_gpiote_is_init() == FALSE)
{
nrf_drv_gpiote_init();
}
nrf_drv_gpiote_in_config_t config = GPIOTE_CONFIG_IN_SENSE_TOGGLE(false);
config.pull = NRF_GPIO_PIN_NOPULL;
nrf_drv_gpiote_in_init(INT_num, &config, irq_Handler);
nrf_drv_gpiote_in_event_enable(INT_num, true);
I use port event, and muti-gpio irqs.Irq gpio connect a sensor`s irq pin.
I detect irq gpio level in irq_Handler(), high level is my need, the low level, not my need, would return.
Irq gpio I config not pull, no irq generate the gpio level is 0.sensor`s irq pin also config low level.
but I have a proble:
when the device bootup, the irq gpio will be pull up a while,then the irq gpio level become 0. but the sensor irq pin not generate irq to pull the nrf52`s irq gpio.
as
