/* This function will set an alternate setting for an interface. */
rt_err_t rt_usbd_set_altsetting(uintf_t intf, rt_uint8_t value)
/* This function will set an alternate setting for an interface. */
rt_err_t rt_usbd_set_altsetting(uintf_t intf, rt_uint8_t value)
{
    ualtsetting_t setting;
    LOG_D("rt_usbd_set_altsetting");
    RT_ASSERT(intf != RT_NULL);
    setting = rt_usbd_find_altsetting(intf, value);
    intf->curr_setting = setting;
    return RT_EOK;
}