Hi,
I need to assign Rising edge and Falling edge event in a single pin.
I try to assign both Rising Edge and Falling Edge event into APP_EVENT_PIN.
There is a error when VERIFY_SUCCESS(err_code) in second assignment.
Is it possible to assign 2 events into single GPIO Pin ?
I need to trigger different tasks for rising and falling event. Hence, I need 2 events on the same pin.
nrfx_gpiote_in_config_t config1 = NRFX_GPIOTE_CONFIG_IN_SENSE_LOTOHI(false);
err_code = nrfx_gpiote_in_init(APP_EVENT_PIN, &config1, gpiote_event_handler);
VERIFY_SUCCESS(err_code);
Event_address_GPIO_LOHI = nrfx_gpiote_in_event_addr_get(APP_EVENT_PIN);
nrfx_gpiote_in_config_t config2 = NRFX_GPIOTE_CONFIG_IN_SENSE_HITOLO(false);
err_code = nrfx_gpiote_in_init(APP_EVENT_PIN, &config2, gpiote_event_handler);
VERIFY_SUCCESS(err_code);
Event_address_GPIO_HILO = nrfx_gpiote_in_event_addr_get(APP_EVENT_PIN);
Please advise.
Thanks.
Br,
KonSang