LV6 Z3 US

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
esokic
Date:
Mon Apr 18 09:24:02 2016 +0000
Commit message:
Testni kod za povezivanje Wifi modula i FRDM sistema

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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Apr 18 09:24:02 2016 +0000
@@ -0,0 +1,25 @@
+#include "mbed.h"
+
+Serial pc(USBTX, USBRX); // tx, rx
+Serial wifi(PTE0,PTE1);
+
+char pc_char, wifi_char;
+
+int main()
+
+{
+    pc.baud(115200);
+    wifi.baud(115200);
+    while(1) {
+
+        if(pc.readable()) {
+            pc_char=pc.getc();
+            wifi.putc(pc_char);
+        }
+        if (wifi.readable()) {
+            wifi_char=wifi.getc();
+            pc.putc(wifi_char);
+        }
+    }
+
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Apr 18 09:24:02 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/082adc85693f
\ No newline at end of file