Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of USBDevice by
Revision 66:756c60620bcf, committed 2016-06-03
- Comitter:
- joshvaldes
- Date:
- Fri Jun 03 02:12:53 2016 +0000
- Parent:
- 65:5bc759cb13f5
- Child:
- 67:7083a93e2829
- Commit message:
- final final 1111
Changed in this revision
| USBDevice/USBDevice.cpp | Show annotated file Show diff for this revision Revisions of this file |
| USBHID/USBHID.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/USBDevice/USBDevice.cpp Fri May 27 18:28:26 2016 +0000
+++ b/USBDevice/USBDevice.cpp Fri Jun 03 02:12:53 2016 +0000
@@ -997,9 +997,17 @@
uint8_t * USBDevice::stringIproductDesc() {
static uint8_t stringIproductDescriptor[] = {
- 0x16, /*bLength*/
- STRING_DESCRIPTOR, /*bDescriptorType 0x03*/
- 'U',0,'S',0,'B',0,' ',0,'D',0,'E',0,'V',0,'I',0,'C',0,'E',0 /*bString iProduct - USB DEVICE*/
+ 0x2A, //bLength
+ STRING_DESCRIPTOR, //bDescriptorType 0x03
+ 'V',0,'i',0,'r',0,'t',0,'u',0,'a',0,'P',0,'i',0,
+ 'n',0,' ',0,'C',0,'o',0,'n',0,'t',0,'r',0,'o',0,'l',0,
+ 'l',0,'e',0,'r',0 //bString iProduct - HID device
+
+
+
+ // 0x16, /*bLength*/
+ // STRING_DESCRIPTOR, /*bDescriptorType 0x03*/
+ // 'U',0,'S',0,'B',0,' ',0,'D',0,'E',0,'V',0,'I',0,'C',0,'E',0 /*bString iProduct - USB DEVICE*/
};
return stringIproductDescriptor;
}
--- a/USBHID/USBHID.cpp Fri May 27 18:28:26 2016 +0000
+++ b/USBHID/USBHID.cpp Fri Jun 03 02:12:53 2016 +0000
@@ -179,9 +179,16 @@
uint8_t * USBHID::stringIinterfaceDesc() {
static uint8_t stringIinterfaceDescriptor[] = {
- 0x08, //bLength
- STRING_DESCRIPTOR, //bDescriptorType 0x03
- 'H',0,'I',0,'D',0, //bString iInterface - HID
+ 0x2A, //bLength
+ STRING_DESCRIPTOR, //bDescriptorType 0x03
+ 'V',0,'i',0,'r',0,'t',0,'u',0,'a',0,'P',0,'i',0,
+ 'n',0,' ',0,'C',0,'o',0,'n',0,'t',0,'r',0,'o',0,'l',0,
+ 'l',0,'e',0,'r',0 //bString iProduct - HID device
+
+
+ // 0x08, //bLength
+ // STRING_DESCRIPTOR, //bDescriptorType 0x03
+ // 'H',0,'I',0,'D',0, //bString iInterface - HID
};
return stringIinterfaceDescriptor;
}
