Serial Bridge program to support using the EasyVR with mbed. It is run when using the PC-based EasyVR GUI tools for voice recognition training and testing.
Revision 0:41997ef0ebb8, committed 2011-05-08
- Comitter:
- 4180_1
- Date:
- Sun May 08 00:00:02 2011 +0000
- Commit message:
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
diff -r 000000000000 -r 41997ef0ebb8 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sun May 08 00:00:02 2011 +0000 @@ -0,0 +1,19 @@ +//EasyVR Bridge Program to connect to PC using mbed +#include "mbed.h" + +Serial pc(USBTX, USBRX); // tx, rx +Serial device(p13, p14); // tx, rx + +int main() { + while(1) { + if(pc.readable()) { + device.putc(pc.getc()); + } + if(device.readable()) { + pc.putc(device.getc()); + } + } +} + + +
diff -r 000000000000 -r 41997ef0ebb8 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sun May 08 00:00:02 2011 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/63bcd7ba4912