A USB to UART bridge
Dependencies: USBDevice BufferedSerial mbed
Revision 1:efa9f62a12c4, committed 2013-12-04
- Comitter:
- yihui
- Date:
- Wed Dec 04 01:28:54 2013 +0000
- Parent:
- 0:8c4eea221dcf
- Child:
- 2:427b69ad737c
- Commit message:
- settings changed callback function is merged into official USB lib, switch to use official USB lib
Changed in this revision
USBDevice.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/USBDevice.lib Wed Oct 30 02:01:50 2013 +0000 +++ b/USBDevice.lib Wed Dec 04 01:28:54 2013 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/yihui/code/USBDevice/#01040319e35c +http://mbed.org/users/mbed_official/code/USBDevice/#849c0c0f2769
--- a/main.cpp Wed Oct 30 02:01:50 2013 +0000 +++ b/main.cpp Wed Dec 04 01:28:54 2013 +0000 @@ -7,6 +7,7 @@ Serial uart(USBTX, USBRX); USBSerial pc; +DigitalOut led(LED2); // Called by ISR void settingsChanged(int baud, int bits, int parity, int stop) @@ -23,6 +24,7 @@ int main() { + led = 1; pc.attach(settingsChanged); while (1) {