mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-19 05:11:30 +08:00
mstorage.c: fix bug in device descriptor that MAC OS enumeration failed.
This commit is contained in:
parent
9d374f873c
commit
6cafbf07ce
@ -78,9 +78,9 @@ static struct udevice_descriptor dev_desc =
|
|||||||
USB_DESC_LENGTH_DEVICE, //bLength;
|
USB_DESC_LENGTH_DEVICE, //bLength;
|
||||||
USB_DESC_TYPE_DEVICE, //type;
|
USB_DESC_TYPE_DEVICE, //type;
|
||||||
USB_BCD_VERSION, //bcdUSB;
|
USB_BCD_VERSION, //bcdUSB;
|
||||||
USB_CLASS_MASS_STORAGE, //bDeviceClass;
|
0x00, //bDeviceClass;
|
||||||
0x06, //bDeviceSubClass;
|
0x00, //bDeviceSubClass;
|
||||||
0x50, //bDeviceProtocol;
|
0x00, //bDeviceProtocol;
|
||||||
0x40, //bMaxPacketSize0;
|
0x40, //bMaxPacketSize0;
|
||||||
_VENDOR_ID, //idVendor;
|
_VENDOR_ID, //idVendor;
|
||||||
_PRODUCT_ID, //idProduct;
|
_PRODUCT_ID, //idProduct;
|
||||||
@ -98,9 +98,9 @@ static struct usb_qualifier_descriptor dev_qualifier =
|
|||||||
sizeof(dev_qualifier), //bLength
|
sizeof(dev_qualifier), //bLength
|
||||||
USB_DESC_TYPE_DEVICEQUALIFIER, //bDescriptorType
|
USB_DESC_TYPE_DEVICEQUALIFIER, //bDescriptorType
|
||||||
0x0200, //bcdUSB
|
0x0200, //bcdUSB
|
||||||
USB_CLASS_MASS_STORAGE, //bDeviceClass
|
0x00, //bDeviceClass
|
||||||
0x06, //bDeviceSubClass
|
0x00, //bDeviceSubClass
|
||||||
0x50, //bDeviceProtocol
|
0x00, //bDeviceProtocol
|
||||||
64, //bMaxPacketSize0
|
64, //bMaxPacketSize0
|
||||||
0x01, //bNumConfigurations
|
0x01, //bNumConfigurations
|
||||||
0,
|
0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user