platform : nrf 52832 SDK : 14.0.0
I used gpiote to detect sensor's interruption . there are two sensors ,so I configure the gpiote like this :
void platform_gpio_int_initialize()
{
if (!nrf_drv_gpiote_is_init())
{
nrf_drv_gpiote_init();
}
nrf_gpio_cfg_input(LIS_3DH_INT1_PIN, NRF_GPIO_PIN_NOPULL);
nrf_gpio_cfg_input(LIS_6DS_INT1_PIN, NRF_GPIO_PIN_NOPULL);
nrf_drv_gpiote_in_config_t in_config = GPIOTE_CONFIG_IN_SENSE_HITOLO(false);
in_config.pull = NRF_GPIO_PIN_PULLUP;
nrf_drv_gpiote_in_init(LIS_6DS_INT1_PIN, &in_config, lis_6ds_interrup_handle);
nrf_drv_gpiote_in_init(LIS_3DH_INT1_PIN, &in_config, lis_3dh_interrup_handle);
nrf_drv_gpiote_in_event_enable(LIS_6DS_INT1_PIN, true);
nrf_drv_gpiote_in_event_enable(LIS_3DH_INT1_PIN, true);
}
neither of the two sensors' interruption couldn't be detected ...
I tried to modify code :
1. I deleted "nrf_drv_gpiote_in_event_enable(LIS_6DS_INT1_PIN, true);" the other sensor's interruption could be detected .
2. "GPIOTE_CONFIG_IN_SENSE_HITOLO(false);" I used 'true' to replace 'false', the two sensors' interruption could be detected .
-----------------------
according to this link : https://devzone.nordicsemi.com/f/nordic-q-a/8071/nrf_drv_gpiote_in_event_enable-function-doesn-t-re-enable-event I found that there's a bug in GPIOTE.
so I want to know if the bug has been fixed already .