|
|
|
@ -10,8 +10,8 @@ static const uint8_t device_descriptor_data[18] = {
|
|
|
|
|
0x00, /* bDeviceSubClass. */
|
|
|
|
|
0x00, /* bDeviceProtocol. */
|
|
|
|
|
0x40, /* bMaxPacketSize. */
|
|
|
|
|
0x0483, /* idVendor (ST). */
|
|
|
|
|
0x5740, /* idProduct. */
|
|
|
|
|
0xEDDE, /* idVendor (ST). */
|
|
|
|
|
0x2025, /* idProduct. */
|
|
|
|
|
0x0200, /* bcdDevice. */
|
|
|
|
|
1, /* iManufacturer. */
|
|
|
|
|
2, /* iProduct. */
|
|
|
|
@ -73,6 +73,7 @@ static const USBDescriptor configuration_descriptor = {
|
|
|
|
|
configuration_descriptor_data
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/* Generated by WaratahCmd.exe from lampArray sample */
|
|
|
|
|
static const uint8_t hid_report_descriptor_data[292] = {
|
|
|
|
|
0x05, 0x59, // UsagePage(Lighting And Illumination[0x0059])
|
|
|
|
|
0x09, 0x01, // UsageId(LampArray[0x0001])
|
|
|
|
@ -280,6 +281,7 @@ static const USBDescriptor *get_descriptor(USBDriver *usbp, uint8_t dtype, uint8
|
|
|
|
|
case USB_DESCRIPTOR_STRING:
|
|
|
|
|
if (dindex < 4)
|
|
|
|
|
return &usb_strings[dindex];
|
|
|
|
|
break;
|
|
|
|
|
case 0x22:
|
|
|
|
|
return &hid_report_descriptor;
|
|
|
|
|
}
|
|
|
|
@ -293,8 +295,8 @@ static const USBEndpointConfig ep1config = {
|
|
|
|
|
NULL,
|
|
|
|
|
NULL,
|
|
|
|
|
NULL,
|
|
|
|
|
0x0020,
|
|
|
|
|
0x0020,
|
|
|
|
|
0x0040,
|
|
|
|
|
0x0040,
|
|
|
|
|
&ep1instate,
|
|
|
|
|
&ep1outstate,
|
|
|
|
|
1,
|
|
|
|
|