HID descriptor fixed

This commit is contained in:
Ross Owen
2014-05-13 18:58:02 +01:00
parent 92918706a3
commit e0c279c040

View File

@@ -1837,13 +1837,12 @@ USB_Config_Descriptor_Audio2_t cfgDesc_Audio2=
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*/
0x08, /* 6 bInterval : (2^(bInterval-1))/8 ms. Must be between 4 and 32ms (field size 1 bytes) */
}
},
#endif
#endif /* IAP */
#ifdef HID_CONTROLS
/* HID */
/* Interface descriptor details */
.HID_Interface =
{
9, /* 0 bLength : Size of descriptor in Bytes */
4, /* 1 bDescriptorType (Interface: 0x04)*/
@@ -1854,8 +1853,9 @@ USB_Config_Descriptor_Audio2_t cfgDesc_Audio2=
0, /* 6: bInterfaceSubClass - no boot device */
0, /* 7: bInterfaceProtocol*/
0, /* 8 iInterface */
},
/* The device implements HID Descriptor: */
{
9, /* 0 bLength : Size of descriptor in Bytes */
0x21, /* 1 bDescriptorType (HID) */
0x10, /* 2 bcdHID */
@@ -1865,7 +1865,10 @@ USB_Config_Descriptor_Audio2_t cfgDesc_Audio2=
0x22, /* 6 bDescriptorType[0] (Report) */
sizeof(hidReportDescriptor) & 0xff,/* 7 wDescriptorLength[0] */
sizeof(hidReportDescriptor) >> 8, /* 8 wDescriptorLength[0] */
},
.HID_In_Endpoint =
{
/* Endpoint descriptor (IN) */
0x7, /* 0 bLength */
5, /* 1 bDescriptorType */
@@ -1873,7 +1876,7 @@ USB_Config_Descriptor_Audio2_t cfgDesc_Audio2=
3, /* 3 bmAttributes (INTERRUPT) */
64, /* 4 wMaxPacketSize */
8, /* 6 bInterval */
},
}
#endif
};