Ashwin Athani
/
mX_UART0
mX mbed BaseBoard UART0
Revision 0:ab972252d85e, committed 2010-12-08
- Comitter:
- ashwin_athani
- Date:
- Wed Dec 08 06:28:55 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 ab972252d85e main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Dec 08 06:28:55 2010 +0000 @@ -0,0 +1,30 @@ +#include "mbed.h" + +Serial UART0(p9, p10); // tx, rx + +int main() +{ + while(1) + { + UART0.baud(115200); + if(UART0.getc() == 'a') + { + UART0.printf("Hello World\n"); + } + else + { + UART0.printf("Press 'a'\n"); + } + } +} + + + + + + + + + + +
diff -r 000000000000 -r ab972252d85e mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Dec 08 06:28:55 2010 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/e2ac27c8e93e