Simple Serial Echo program for the LandTiger Board, using COM2 port/connector

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
alex_G_blanco
Date:
Sat Mar 05 02:08:51 2016 +0000
Commit message:
Simple serial RS232 echo program for the LandTiger Board. Uses COM2 connector

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 498d68e9665f main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sat Mar 05 02:08:51 2016 +0000
@@ -0,0 +1,11 @@
+#include "mbed.h"
+
+//Serial echo for the LandTiger board
+Serial pc(P0_10, P0_11); //tx, rx pins for the Landtiger, COM2 UART2 connector 
+
+int main() {
+    pc.printf("hello world\n");
+    while(1) {
+        pc.putc(pc.getc()); //character echo
+    }
+}
diff -r 000000000000 -r 498d68e9665f mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sat Mar 05 02:08:51 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/252557024ec3
\ No newline at end of file