Emir Sokic
/
LV6_WiFi_2016
LV6 Z3 US
Revision 0:cb4bbea99c4a, committed 2016-04-18
- 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 |
diff -r 000000000000 -r cb4bbea99c4a main.cpp --- /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
diff -r 000000000000 -r cb4bbea99c4a mbed.bld --- /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