project to demonstrate a problem with K64F serial

Dependencies:   EthernetInterface WebSocketClient mbed-rtos mbed

Revision:
0:07c16f3f860a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Jun 22 20:04:24 2014 +0000
@@ -0,0 +1,36 @@
+#include "mbed.h"
+
+DigitalOut myled(LED_GREEN);
+Serial pc(USBTX, USBRX);
+
+
+void SerialPC_RxIRQ()
+{
+     while(pc.readable())
+     {
+    
+        pc.putc(pc.getc());
+    
+     }
+}
+
+int main()
+{
+    int i = 0;
+    pc.printf("\nHello World!\n");
+    
+   // pc.attach(&SerialPC_RxIRQ ,pc.RxIrq);
+
+    
+    while (true) {
+      
+        if(pc.readable())
+        {
+            pc.putc(pc.getc());   
+        }
+      
+        myled = !myled;
+    }
+}
+
+