How to implement WIZ550io on FRDM-KL25Z. Refer to http://wizwiki.net/wiki/doku.php
Dependencies: W5500Interface mbed
Refer to http://www.youtube.com/watch?v=i77zoV5tnbE
Diff: main.cpp
- Revision:
- 1:2d33dfc71ea6
- Parent:
- 0:614e89b2211e
- Child:
- 2:11f7f413e10d
--- a/main.cpp Wed Oct 22 06:34:24 2014 +0000 +++ b/main.cpp Mon Oct 27 00:39:14 2014 +0000 @@ -1,6 +1,6 @@ #include "mbed.h" -//#include "EthernetInterface.h" -#include "EthernetInterfaceW5500.h" +#include "EthernetInterface.h" +//#include "EthernetInterfaceW5500.h" #include <stdio.h> #include <string.h> @@ -35,7 +35,7 @@ int main (void) { SPI spi(PTD2, PTD3, PTD1); // mosi, miso, sclk - EthernetInterfaceW5500 eth(&spi, PTD0, PTA20);//, nRESET(PTA20); // reset pin is dummy, don't affect any pin of WIZ550io + EthernetInterface eth(&spi, PTD0, PTA20);//, nRESET(PTA20); // reset pin is dummy, don't affect any pin of WIZ550io spi.format(8,0); // 8bit, mode 0 spi.frequency(7000000); // 7MHz wait(1); // 1 second for stable state