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
Revision 2:11f7f413e10d, committed 2014-10-29
- Comitter:
- bingdo
- Date:
- Wed Oct 29 02:15:35 2014 +0000
- Parent:
- 1:2d33dfc71ea6
- Commit message:
- Add NXP features.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 2d33dfc71ea6 -r 11f7f413e10d main.cpp --- a/main.cpp Mon Oct 27 00:39:14 2014 +0000 +++ b/main.cpp Wed Oct 29 02:15:35 2014 +0000 @@ -34,11 +34,26 @@ int main (void) { +#if defined(TARGET_LPC1114) + SPI spi(dp2, dp1, dp6); // mosi, miso, sclk + EthernetInterface eth(&spi, dp25, dp26); // spi, cs, reset + wait(1); // 1 second for stable state +#elif defined(TARGET_LPC1768) + SPI spi(p11, p12, p13); // mosi, miso, sclk + EthernetInterface eth(&spi, p14, p15); // spi, cs, reset + wait(1); // 1 second for stable state +#elif defined(TARGET_LPC11U68) + SPI spi(P0_9, P0_8, P1_29); // mosi, miso, sclk + EthernetInterface eth(&spi, P0_2, P1_28);//, nRESET(p9); // 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 +#elif defined(TARGET_KL25Z) SPI spi(PTD2, PTD3, PTD1); // mosi, miso, sclk 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 +#endif // late binding TCPSocketServer svr;