adds a USB serial port to your design

Dependents:   Example_WatchDog_Timer

Revision:
64:c7639faed2eb
Parent:
11:eeb3cbbaa996
diff -r 5b7d31d9d3f3 -r c7639faed2eb USBSerial/USBSerial.cpp
--- a/USBSerial/USBSerial.cpp	Wed Apr 02 21:00:41 2014 +0100
+++ b/USBSerial/USBSerial.cpp	Mon Apr 28 12:15:41 2014 +0000
@@ -67,3 +67,7 @@
 uint8_t USBSerial::available() {
     return buf.available();
 }
+
+bool USBSerial::connected() {
+    return terminal_connected;
+}