usb
The Device Descriptor
/* USB Standard Device Descriptor */
__ALIGN_BEGIN uint8_t USBD_FS_DeviceDesc[USB_LEN_DEV_DESC] __ALIGN_END =
{
18, /*bLength */
1, /*bDescriptorType*/
0x00, /* bcdUSB */
0x02,
DEVICE_CLASS, /*bDeviceClass*/
DEVICE_SUBCLASS, /*bDeviceSubClass*/
DEVICE_PROTOCOL, /*bDeviceProtocol*/
USB_MAX_EP0_SIZE, /*bMaxPacketSize*/ // --> EP0_SIZE dando problema
LOBYTE(VENDOR_ID), /*idVendor*/
HIBYTE(VENDOR_ID), /*idVendor*/
LOBYTE(PRODUCT_ID), /*idVendor*/
HIBYTE(PRODUCT_ID), /*idVendor*/
LOBYTE(DEVICE_VERSION), /*bcdDevice rel. 2.00*/
HIBYTE(DEVICE_VERSION),
1, /*Index of manufacturer string*/
2, /*Index of product string*/
3, /*Index of serial number string*/
1 /*bNumConfigurations*/
} ;
/* USB_DeviceDescriptor */Configuration Descriptor
控制数据
最后更新于