HID descriptor fixed
This commit is contained in:
@@ -1837,13 +1837,12 @@ USB_Config_Descriptor_Audio2_t cfgDesc_Audio2=
|
|||||||
0x03, /* 3 bmAttributes : Interrupt, not shared. (field size 1 bytes) */
|
0x03, /* 3 bmAttributes : Interrupt, not shared. (field size 1 bytes) */
|
||||||
0x0040, /* 4 wMaxPacketSize : 64 bytes per packet. (field size 2 bytes) - has to be 0x40 for compliance*/
|
0x0040, /* 4 wMaxPacketSize : 64 bytes per packet. (field size 2 bytes) - has to be 0x40 for compliance*/
|
||||||
0x08, /* 6 bInterval : (2^(bInterval-1))/8 ms. Must be between 4 and 32ms (field size 1 bytes) */
|
0x08, /* 6 bInterval : (2^(bInterval-1))/8 ms. Must be between 4 and 32ms (field size 1 bytes) */
|
||||||
}
|
},
|
||||||
#endif
|
#endif
|
||||||
#endif /* IAP */
|
#endif /* IAP */
|
||||||
|
|
||||||
#ifdef HID_CONTROLS
|
#ifdef HID_CONTROLS
|
||||||
/* HID */
|
.HID_Interface =
|
||||||
/* Interface descriptor details */
|
|
||||||
{
|
{
|
||||||
9, /* 0 bLength : Size of descriptor in Bytes */
|
9, /* 0 bLength : Size of descriptor in Bytes */
|
||||||
4, /* 1 bDescriptorType (Interface: 0x04)*/
|
4, /* 1 bDescriptorType (Interface: 0x04)*/
|
||||||
@@ -1854,8 +1853,9 @@ USB_Config_Descriptor_Audio2_t cfgDesc_Audio2=
|
|||||||
0, /* 6: bInterfaceSubClass - no boot device */
|
0, /* 6: bInterfaceSubClass - no boot device */
|
||||||
0, /* 7: bInterfaceProtocol*/
|
0, /* 7: bInterfaceProtocol*/
|
||||||
0, /* 8 iInterface */
|
0, /* 8 iInterface */
|
||||||
|
},
|
||||||
|
|
||||||
/* The device implements HID Descriptor: */
|
{
|
||||||
9, /* 0 bLength : Size of descriptor in Bytes */
|
9, /* 0 bLength : Size of descriptor in Bytes */
|
||||||
0x21, /* 1 bDescriptorType (HID) */
|
0x21, /* 1 bDescriptorType (HID) */
|
||||||
0x10, /* 2 bcdHID */
|
0x10, /* 2 bcdHID */
|
||||||
@@ -1865,7 +1865,10 @@ USB_Config_Descriptor_Audio2_t cfgDesc_Audio2=
|
|||||||
0x22, /* 6 bDescriptorType[0] (Report) */
|
0x22, /* 6 bDescriptorType[0] (Report) */
|
||||||
sizeof(hidReportDescriptor) & 0xff,/* 7 wDescriptorLength[0] */
|
sizeof(hidReportDescriptor) & 0xff,/* 7 wDescriptorLength[0] */
|
||||||
sizeof(hidReportDescriptor) >> 8, /* 8 wDescriptorLength[0] */
|
sizeof(hidReportDescriptor) >> 8, /* 8 wDescriptorLength[0] */
|
||||||
|
},
|
||||||
|
|
||||||
|
.HID_In_Endpoint =
|
||||||
|
{
|
||||||
/* Endpoint descriptor (IN) */
|
/* Endpoint descriptor (IN) */
|
||||||
0x7, /* 0 bLength */
|
0x7, /* 0 bLength */
|
||||||
5, /* 1 bDescriptorType */
|
5, /* 1 bDescriptorType */
|
||||||
@@ -1873,7 +1876,7 @@ USB_Config_Descriptor_Audio2_t cfgDesc_Audio2=
|
|||||||
3, /* 3 bmAttributes (INTERRUPT) */
|
3, /* 3 bmAttributes (INTERRUPT) */
|
||||||
64, /* 4 wMaxPacketSize */
|
64, /* 4 wMaxPacketSize */
|
||||||
8, /* 6 bInterval */
|
8, /* 6 bInterval */
|
||||||
},
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user