Test program for serial interface

This program turns the red LED on and then waits for a character to be entered at the terminal. The LED then goes off for 500ms before the cycle repeats.

The purpose of the program is to demonstrate the use of the serial link

Revision:
1:961580c296da
Parent:
0:75835b5692b9
Child:
2:e92d97ac59e4
diff -r 75835b5692b9 -r 961580c296da main.cpp
--- a/main.cpp	Mon Jan 16 22:05:16 2017 +0000
+++ b/main.cpp	Wed Jan 25 15:44:53 2017 +0000
@@ -12,6 +12,7 @@
         c = pc.getc();
         myled = 1;  // turn off
         pc.putc(c);
+        pc.putc('\r');
         pc.putc('\n');
         Thread::wait(500);
         pc.printf("Enter a character>");