Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: IBMIoTClientEthernetExample_W5200
Fork of W5500Interface by
Revision 1:8f4374f932b4, committed 2014-08-20
- Comitter:
- Bongjun
- Date:
- Wed Aug 20 01:55:36 2014 +0000
- Parent:
- 0:e11e8793c3ce
- Child:
- 2:e02950866c42
- Commit message:
- comment for usage to EthernetInterface.cpp
Changed in this revision
| EthernetInterface.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/EthernetInterface.cpp Wed Aug 20 00:28:37 2014 +0000
+++ b/EthernetInterface.cpp Wed Aug 20 01:55:36 2014 +0000
@@ -1,4 +1,30 @@
// EthernetInterface for W5500 2014/8/20
+/*
+// sample usgae.
+// copy below code block to main code.
+
+#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
+#endif
+
+ eth.init(); //Use DHCP
+ dbg.printf("init\r\n");
+ eth.connect();
+ dbg.printf("IP address: %s\r\n", eth.getIPAddress());
+
+*/
#include "EthernetInterface.h"
#include "DHCPClient.h"
