FTDI Simulator

Dependencies:   mbed

Fork of Wifly_configure by Samuel Mokrani

Revision:
0:a63053b8abc0
Child:
1:20eea0789016
diff -r 000000000000 -r a63053b8abc0 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Nov 06 12:04:58 2011 +0000
@@ -0,0 +1,19 @@
+#include "mbed.h"
+
+Serial pc(USBTX, USBRX);
+Serial wifi(p9,p10);
+DigitalOut reset(p30);
+
+
+int main() {
+    
+    pc.printf("Test Wifly!\r\n");
+
+    while (1) 
+    {
+        while(pc.readable())
+            wifi.putc(pc.getc());
+        while(wifi.readable())
+            pc.putc(wifi.getc());
+    }
+}