/* This function will add an endpoint to an alternate setting. */
rt_err_t rt_usbd_altsetting_add_endpoint(ualtsetting_t setting, uep_t ep)
/* This function will add an endpoint to an alternate setting. */
rt_err_t rt_usbd_altsetting_add_endpoint(ualtsetting_t setting, uep_t ep)
{
    LOG_D("rt_usbd_altsetting_add_endpoint");
    RT_ASSERT(setting != RT_NULL);
    RT_ASSERT(ep != RT_NULL);
    rt_list_insert_before(&setting->ep_list, &ep->list);
    return RT_EOK;
}