USB device stack; Added getter method for terminal_connected;
Fork of USBDevice by
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); } }
Diff: USBMSD/USBMSD.cpp
- Revision:
- 8:335f2506f422
- Parent:
- 7:f8f057664123
- Child:
- 11:eeb3cbbaa996
--- a/USBMSD/USBMSD.cpp Mon Jan 21 10:41:28 2013 +0000 +++ b/USBMSD/USBMSD.cpp Fri Mar 01 13:10:29 2013 +0000 @@ -642,4 +642,4 @@ 0 // bInterval }; return configDescriptor; -} \ No newline at end of file +}