/* Function for sense disabling for all pins for specified user.  */
static void pins_sense_disable(app_gpiote_user_id_t user_id)
/* Function for sense disabling for all pins for specified user.  */
static void pins_sense_disable(app_gpiote_user_id_t user_id)
{
    uint32_t pin_no;
    for (pin_no = 0; pin_no < 32; pin_no++)
    {
        if ((mp_users[user_id].pins_mask & (1 << pin_no)) != 0)
        {
            NRF_GPIO->PIN_CNF[pin_no] &= ~GPIO_PIN_CNF_SENSE_Msk;
            NRF_GPIO->PIN_CNF[pin_no] |= GPIO_PIN_CNF_SENSE_Disabled << GPIO_PIN_CNF_SENSE_Pos;
        }
    }
}