/* This function will set feature for an usb device. */
rt_err_t rt_usbd_set_feature(udevice_t device, rt_uint16_t value, rt_uint16_t index)
/* This function will set feature for an usb device. */
rt_err_t rt_usbd_set_feature(udevice_t device, rt_uint16_t value, rt_uint16_t index)
{
    RT_ASSERT(device != RT_NULL);
    if (value == USB_FEATURE_DEV_REMOTE_WAKEUP)
    {
        LOG_D("set feature remote wakeup");
    }
    else if (value == USB_FEATURE_ENDPOINT_HALT)
    {
        LOG_D("set feature stall");
        dcd_ep_set_stall(device->dcd, (rt_uint32_t)(index & 0xFF));
    }
    return RT_EOK;
}