mX mbed BaseBoard UART0

Dependencies:   mbed

Files at this revision

API Documentation at this revision

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
--- /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");
+        }      
+    }
+}
+
+
+
+
+
+
+
+
+
+
+
--- /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