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:
38:dfe51ad5cacf
Parent:
28:c09a0c9bf425
Child:
39:1dbc943a21cf
diff -r 9506bdafbf94 -r dfe51ad5cacf USBDevice/USBDevice.cpp
--- a/USBDevice/USBDevice.cpp	Wed Nov 19 09:00:30 2014 +0000
+++ b/USBDevice/USBDevice.cpp	Fri Nov 28 07:15:18 2014 +0000
@@ -187,7 +187,7 @@
     /* Check we should be transferring data OUT */
     if (transfer.direction != HOST_TO_DEVICE)
     {
-#if defined(TARGET_KL25Z) | defined(TARGET_KL46Z) | defined(TARGET_K20D5M) | defined(TARGET_K64F)
+#if defined(TARGET_KL25Z) | defined(TARGET_KL46Z) | defined(TARGET_K20D5M) | defined(TARGET_K64F) | defined(TARGET_K22F)
         /*
          * We seem to have a pending device-to-host transfer.  The host must have
          * sent a new control request without waiting for us to finish processing