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 68:06fd9b306fb5, committed 2016-06-22
- Comitter:
- joshvaldes
- Date:
- Wed Jun 22 20:08:26 2016 +0000
- Parent:
- 67:7083a93e2829
- Child:
- 69:261693873326
- Child:
- 70:f60a9be29d9f
- Commit message:
- HID descriptor updated to separate device and manufacture
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 Wed Jun 08 19:36:09 2016 +0000
+++ b/USBDevice/USBDevice.cpp Wed Jun 22 20:08:26 2016 +0000
@@ -961,9 +961,10 @@
uint8_t * USBDevice::stringImanufacturerDesc() {
static uint8_t stringImanufacturerDescriptor[] = {
- 0x12, /*bLength*/
+ 0x14, /*bLength*/
STRING_DESCRIPTOR, /*bDescriptorType 0x03*/
- //'m',0,'b',0,'e',0,'d',0,'.',0,'o',0,'r',0,'g',0, /*bString iManufacturer - mbed.org*/ // commented out manufacture descriptor mbed.org
+ 'V',0,'i',0,'r',0,'t',0,'u',0,'a',0,'P',0,'i',0,
+ 'n',0,//'m',0,'b',0,'e',0,'d',0,'.',0,'o',0,'r',0,'g',0, /*bString iManufacturer - mbed.org*/ // commented out manufacture descriptor mbed.org
};
return stringImanufacturerDescriptor;
}
--- a/USBHID/USBHID.cpp Wed Jun 08 19:36:09 2016 +0000
+++ b/USBHID/USBHID.cpp Wed Jun 22 20:08:26 2016 +0000
@@ -189,10 +189,9 @@
uint8_t * USBHID::stringIproductDesc() { // VirtuaPin Controller
static uint8_t stringIproductDescriptor[] = {
- 0x2A, //bLength
+ 0x16, //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,
+ 'C',0,'o',0,'n',0,'t',0,'r',0,'o',0,'l',0,
'l',0,'e',0,'r',0 //bString iProduct - HID device
};
return stringIproductDescriptor;
