while (button_count--)//botton_count = 4
{
app_button_cfg_t * p_btn = &p_buttons[button_count];
nrf_drv_gpiote_in_config_t config = GPIOTE_CONFIG_IN_SENSE_TOGGLE(false);
config.pull = p_btn->pull_cfg;
err_code = nrf_drv_gpiote_in_init(p_btn->pin_no, &config, gpiote_event_handler);//return //NRF_ERROR_NO_MEM when it is called at the second time,,why ?how can i modify it
if (err_code != NRF_SUCCESS)
{
return err_code;
}
}