static app_gpiote_user_id_t m_example_user_id;
static void example_gpiote_event_handler(uint32_t event_pins_low_to_high, uint32_t event_pin_high_to_low);
static void gpiote(void){
nrf_gpio_cfg_output(7);
nrf_drv_gpiote_in_uninit(7);
nrf_drv_gpiote_init();
uint32_t low_to_high_bitmask = 0x00000100;
uint32_t high_to_low_bitmask = 0x00000100;
uint32_t retval ;
retval= app_gpiote_user_register(&m_example_user_id, &low_to_high_bitmask ,&high_to_low_bitmask,(app_gpiote_event_handler_t)example_gpiote_event_handler);
if(retval != NRF_SUCCESS){
NRF_LOG_INFO("echoue err_code=%d",retval);
}
else{
NRF_LOG_INFO("succes");
}
}
void example_gpiote_event_handler(uint32_t event_pins_low_to_high, uint32_t event_pin_high_to_low){
if(event_pins_low_to_high & 0x00000100){
NRF_LOG_INFO("succes");
}
if(event_pin_high_to_low & 0x00000100){
NRF_LOG_INFO("succes");
}
}