USB device stack, fixes for USBSerial, lightweight without malloc (RTOS ready)

Dependents:   EMIRv2

Fork of USBDevice by Ales Povalac

Revision:
23: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;
+}