Websocket Test Program for W5500 (WIZ550io) FRDM-KL25Z WIZ550io Ethernet Board.
Dependencies: W5500Interface WebSocketClient mbed
Fork of Websocket_Ethernet_W5500 by
Websocket example using Ethernet component of WIZ550io (W5500). FRDM-KL25Z is used.
Revision 6:5bd7bd3e1b83, committed 2014-10-21
- Comitter:
- kaizen
- Date:
- Tue Oct 21 23:28:40 2014 +0000
- Parent:
- 5:5f427a506928
- Commit message:
- Changed the latest ethernet interface
Changed in this revision
diff -r 5f427a506928 -r 5bd7bd3e1b83 EthernetInterfaceW5500.lib --- a/EthernetInterfaceW5500.lib Wed Jul 09 23:44:22 2014 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://mbed.org/users/Bongjun/code/EthernetInterfaceW5500/#d714b7a94bff
diff -r 5f427a506928 -r 5bd7bd3e1b83 W5500Interface.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/W5500Interface.lib Tue Oct 21 23:28:40 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/teams/EthernetInterfaceW5500-makers/code/W5500Interface/#713b6d2aaefb
diff -r 5f427a506928 -r 5bd7bd3e1b83 main.cpp --- a/main.cpp Wed Jul 09 23:44:22 2014 +0000 +++ b/main.cpp Tue Oct 21 23:28:40 2014 +0000 @@ -1,8 +1,7 @@ #include "mbed.h" -#include "EthernetInterfaceW5500.h" +#include "EthernetInterface.h" #include "Websocket.h" - #define _DHCP //#define _USE_WIZ550io DigitalOut myled(LED1); @@ -24,9 +23,14 @@ spi.frequency(7000000); // 7MHz wait(1); // 1 second for stable state #elif defined(TARGET_KL25Z) + Serial pc(USBTX, USBRX); + pc.baud(115200); + printf("spi init\r\n"); SPI spi(D11, D12, D13); // mosi, miso, sclk - EthernetInterfaceW5500 eth(&spi, D10, PTA20);//scs(D10), nRESET(PTA20) - + wait(1); // 1 second for stable state + EthernetInterface eth(&spi, D10, D9);//scs(D10), nRESET(PTA20) + printf("App Start\r\n"); + wait(1); // 1 second for stable state #endif #ifndef _USE_WIZ550io