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:
16:4f6df64750bd
--- a/USBDevice/USBHAL.h	Thu May 30 17:16:57 2013 +0100
+++ b/USBDevice/USBHAL.h	Mon Aug 05 14:13:36 2013 +0300
@@ -21,10 +21,11 @@
 
 #include "mbed.h"
 #include "USBEndpoints.h"
+#include "toolchain.h"
 
-#ifdef __GNUC__
-#define __packed __attribute__ ((__packed__))
-#endif
+//#ifdef __GNUC__
+//#define __packed __attribute__ ((__packed__))
+//#endif
 
 class USBHAL {
 public: