/* Function for scheduling a Timer Stop All operation.  */
static uint32_t timer_stop_all_op_schedule(timer_user_id_t user_id)
/* Function for scheduling a Timer Stop All operation.  */
static uint32_t timer_stop_all_op_schedule(timer_user_id_t user_id)
{
    uint8_t last_index;
    timer_user_op_t * p_user_op = user_op_alloc(&mp_users[user_id], &last_index);
    if (p_user_op == NULL)
    {
        return NRF_ERROR_NO_MEM;
    }
    p_user_op->op_type  = TIMER_USER_OP_TYPE_STOP_ALL;
    p_user_op->p_node = NULL;
    user_op_enque(&mp_users[user_id], last_index);        
    timer_list_handler_sched();
    return NRF_SUCCESS;
}