| | _USB_DESCRIPTOR结构体没有修改正确
其中第三步->1->F这一步要求修改以下内容:
-
- typedef struct _USB_DESCRIPTOR {
- USB_CONFIGURATION_DESCRIPTOR ConfigDescr;
- USB_INTERFACE_DESCRIPTOR InterfaceDescr;
- USB_HID_DESCRIPTOR HidDescr;
- USB_ENDPOINT_DESCRIPTOR EP1_TXDescr;
- USB_ENDPOINT_DESCRIPTOR EP1_RXDescr;
- USB_ENDPOINT_DESCRIPTOR EP2_TXDescr;
- USB_ENDPOINT_DESCRIPTOR EP2_RXDescr;
- } USB_DESCRIPTOR, *PUSB_DESCRIPTOR;
为
-
- typedef struct _USB_DESCRIPTOR {
- USB_CONFIGURATION_DESCRIPTOR ConfigDescr;
- USB_INTERFACE_DESCRIPTOR InterfaceDescr;
- USB_HID_DESCRIPTOR HidDescr;
-
-
- USB_ENDPOINT_DESCRIPTOR EP2_TXDescr;
- USB_ENDPOINT_DESCRIPTOR EP2_RXDescr;
- } USB_DESCRIPTOR, *PUSB_DESCRIPTOR;
应在Descriptor.h中修改,其正确的描述应为:
修改Descriptor.h中以下内容:
-
- typedef struct _USB_DESCRIPTOR {
- USB_CONFIGURATION_DESCRIPTOR ConfigDescr;
- USB_INTERFACE_DESCRIPTOR InterfaceDescr;
- USB_ENDPOINT_DESCRIPTOR EP1_TXDescr;
- USB_ENDPOINT_DESCRIPTOR EP1_RXDescr;
- USB_ENDPOINT_DESCRIPTOR EP2_TXDescr;
- USB_ENDPOINT_DESCRIPTOR EP2_RXDescr;
- } USB_DESCRIPTOR, *PUSB_DESCRIPTOR;
为
-
- typedef struct _USB_DESCRIPTOR {
- USB_CONFIGURATION_DESCRIPTOR ConfigDescr;
- USB_INTERFACE_DESCRIPTOR InterfaceDescr;
- USB_HID_DESCRIPTOR HidDescr;
-
-
- USB_ENDPOINT_DESCRIPTOR EP2_TXDescr;
- USB_ENDPOINT_DESCRIPTOR EP2_RXDescr;
- } USB_DESCRIPTOR, *PUSB_DESCRIPTOR;
------------------------------------------------------------- 只要这把这里修改好就可以通过编译了
回复楼主 回复第1楼
|