Modified USBDevice mainly for debug of serial port communications. It is unfinished and should not be used - use the main branch.

Dependents:   FinalProject

Fork of USBDevice by mbed official

Revision:
11:04aaad10c94e
Parent:
8:335f2506f422
--- a/USBDevice/USBDevice.cpp	Fri Mar 01 13:10:29 2013 +0000
+++ b/USBDevice/USBDevice.cpp	Sun Sep 01 23:34:33 2013 +0000
@@ -703,6 +703,10 @@
     return (device.state == CONFIGURED);
 }
 
+DEVICE_STATE USBDevice::getDeviceState() {
+    return device.state;
+}
+
 void USBDevice::connect(void)
 {
     /* Connect device */
@@ -715,6 +719,7 @@
 {
     /* Disconnect device */
     USBHAL::disconnect();
+    device.state = DEFAULT;
 }
 
 CONTROL_TRANSFER * USBDevice::getTransferPtr(void)
@@ -926,7 +931,7 @@
     static uint8_t stringLangidDescriptor[] = {
         0x04,               /*bLength*/
         STRING_DESCRIPTOR,  /*bDescriptorType 0x03*/
-        0x09,0x00,          /*bString Lang ID - 0x009 - English*/
+        0x09,0x04,          /*bString Lang ID - 0x409 - English*/
     };
     return stringLangidDescriptor;
 }