FTDI Simulator

Dependencies:   mbed

Fork of Wifly_configure by Samuel Mokrani

Committer:
samux
Date:
Sun Nov 06 12:12:21 2011 +0000
Revision:
1:20eea0789016
Parent:
0:a63053b8abc0
Child:
2:8b5ff73de8f0

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
samux 0:a63053b8abc0 1 #include "mbed.h"
samux 0:a63053b8abc0 2
samux 0:a63053b8abc0 3 Serial pc(USBTX, USBRX);
samux 0:a63053b8abc0 4 Serial wifi(p9,p10);
samux 0:a63053b8abc0 5
samux 0:a63053b8abc0 6
samux 0:a63053b8abc0 7 int main() {
samux 0:a63053b8abc0 8
samux 0:a63053b8abc0 9 pc.printf("Test Wifly!\r\n");
samux 0:a63053b8abc0 10
samux 0:a63053b8abc0 11 while (1)
samux 0:a63053b8abc0 12 {
samux 0:a63053b8abc0 13 while(pc.readable())
samux 0:a63053b8abc0 14 wifi.putc(pc.getc());
samux 0:a63053b8abc0 15 while(wifi.readable())
samux 0:a63053b8abc0 16 pc.putc(wifi.getc());
samux 0:a63053b8abc0 17 }
samux 0:a63053b8abc0 18 }