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: USBDevice/USBHAL.h
- Revision:
- 10:1e3d126a322b
- Parent:
- 8:335f2506f422
- Child:
- 11:eeb3cbbaa996
--- a/USBDevice/USBHAL.h Mon Mar 04 13:37:51 2013 +0000 +++ b/USBDevice/USBHAL.h Thu May 30 17:16:57 2013 +0100 @@ -22,6 +22,10 @@ #include "mbed.h" #include "USBEndpoints.h" +#ifdef __GNUC__ +#define __packed __attribute__ ((__packed__)) +#endif + class USBHAL { public: /* Configuration */