usb: re-enable extra usb descriptors

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2019-04-02 18:11:09 +08:00
parent 851e54e70c
commit dbc0f81715
2 changed files with 3 additions and 3 deletions

View File

@ -223,7 +223,7 @@ const usb_descriptor_list_t usb_descriptor_list[] = {
{0x0300, 0, (const uint8_t *)&string0},
{0x0301, 0, (const uint8_t *)&usb_string_manufacturer_name},
{0x0302, 0, (const uint8_t *)&usb_string_product_name},
// {0x03EE, 0, (const uint8_t *)&usb_string_microsoft},
// {0x0F00, sizeof(full_bos), (const uint8_t *)&full_bos},
{0x03EE, 0, (const uint8_t *)&usb_string_microsoft},
{0x0F00, sizeof(full_bos), (const uint8_t *)&full_bos},
{0, 0, NULL}
};

View File

@ -112,7 +112,7 @@ void usb_setup(struct usb_device *dev, const struct usb_setup_request *setup)
// printf("%s:%d couldn't find descriptor %04x (%d / %d)\n", __FILE__, __LINE__, setup->wValue, setup->wIndex, setup->wValue);
usb_err(dev, 0);
return;
#if 0
#if 1
case (MSFT_VENDOR_CODE << 8) | 0xC0: // Get Microsoft descriptor
case (MSFT_VENDOR_CODE << 8) | 0xC1:
if (setup->wIndex == 0x0004)