virtua pinnnn / USBDevice

Fork of USBDevice by mbed official

Files at this revision

API Documentation at this revision

Comitter:
joshvaldes
Date:
Tue Nov 08 03:32:20 2016 +0000
Parent:
68:06fd9b306fb5
Commit message:
virtuapin controller all in USBDevice.cpp

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 22 20:08:26 2016 +0000
+++ b/USBDevice/USBDevice.cpp	Tue Nov 08 03:32:20 2016 +0000
@@ -961,10 +961,16 @@
 
 uint8_t * USBDevice::stringImanufacturerDesc() {
     static uint8_t stringImanufacturerDescriptor[] = {
-        0x14,                                            /*bLength*/
-        STRING_DESCRIPTOR,                               /*bDescriptorType 0x03*/
-        '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
+        0x00,
+        STRING_DESCRIPTOR,
+        
+        //0x2A,
+        //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,
+        //0x14,                                            /*bLength*/
+        //STRING_DESCRIPTOR,                               /*bDescriptorType 0x03*/
+        //'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 22 20:08:26 2016 +0000
+++ b/USBHID/USBHID.cpp	Tue Nov 08 03:32:20 2016 +0000
@@ -189,10 +189,18 @@
 
 uint8_t * USBHID::stringIproductDesc() { // VirtuaPin Controller
     static uint8_t stringIproductDescriptor[] = {
-        0x16,                                                       //bLength
-        STRING_DESCRIPTOR,                                          //bDescriptorType 0x03 
-        'C',0,'o',0,'n',0,'t',0,'r',0,'o',0,'l',0,
-        'l',0,'e',0,'r',0 //bString iProduct - HID device
+        0x2A,
+        STRING_DESCRIPTOR,                           
+        '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,
+        
+        
+        //0x00,
+        //STRING_DESCRIPTOR,
+        
+        //0x16,                                                       //bLength
+        //STRING_DESCRIPTOR,                                          //bDescriptorType 0x03 
+        //'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;
 }