//Simple program allowing user to recieve string from STM32F4 and output it through com port

Dependencies:   mbed

Fork of FRDM-K64F-UARTCOMMS by Demo Team

Revision:
0:f682dcf80f00
Child:
1:e1492422d835
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Feb 23 11:20:37 2015 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+//Simple program allowing user to send messages from mbed COM out through UART to another UART COM.
+//Andrea Corrado
+Serial pc(USBTX, USBRX); // tx, rx
+Serial uart (PTC17, PTC16);
+
+
+int main()
+{
+    while(1) {
+        if (pc.readable()) {
+            uart.putc(pc.getc());
+        }
+    }
+}