Ashwin Athani
/
mX_UART1
mX mbed BaseBoard UART1
Revision 0:9299b9963466, committed 2010-12-08
- Comitter:
- ashwin_athani
- Date:
- Wed Dec 08 06:29:46 2010 +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 9299b9963466 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Dec 08 06:29:46 2010 +0000 @@ -0,0 +1,19 @@ +#include "mbed.h" + +Serial UART1(p13, p14); // tx, rx + +int main() +{ + while(1) + { + UART1.baud(115200); + if(UART1.getc() == 'b') + { + UART1.printf("Hello World\n"); + } + else + { + UART1.printf("Press 'b'\n"); + } + } +} \ No newline at end of file
diff -r 000000000000 -r 9299b9963466 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Dec 08 06:29:46 2010 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/e2ac27c8e93e