USB device stack; Added getter method for terminal_connected;

Fork of USBDevice by mbed official

Example of use:

#include "mbed.h"
#include "USBSerial.h"

USBSerial  pc;
DigitalOut blue_led(P0_20);

int main() {
    blue_led = 1;
    while(!pc.getTerminal_connected()); //Wait for serial terminal to connect...
    while(1) {
        blue_led = 0;
        wait(0.2);
        blue_led = 1;
        wait(0.2);
    }
}
Revision:
11:eeb3cbbaa996
Parent:
10:1e3d126a322b
Child:
14:d495202c90f4
--- a/USBMSD/USBMSD.h	Thu May 30 17:16:57 2013 +0100
+++ b/USBMSD/USBMSD.h	Mon Aug 05 14:13:36 2013 +0300
@@ -184,7 +184,7 @@
         uint8_t  LUN;
         uint8_t  CBLength;
         uint8_t  CB[16];
-    } __packed CBW;
+    } PACKED CBW;
 
     // Bulk-only CSW
     typedef struct {
@@ -192,7 +192,7 @@
         uint32_t Tag;
         uint32_t DataResidue;
         uint8_t  Status;
-    } __packed CSW;
+    } PACKED CSW;
 
     //state of the bulk-only state machine
     Stage stage;