ban4jp - / Mbed 2 deprecated HTTPClient_HelloWorld_WIZ820io

Dependencies:   HTTPClient WIZ820ioInterface mbed

Fork of HTTPClient_HelloWorld by ban4jp -

Files at this revision

API Documentation at this revision

Comitter:
ban4jp
Date:
Sun Dec 01 18:54:44 2013 +0000
Parent:
3:242eb9cf2b1e
Child:
6:1aba7b616629
Commit message:
Add WIZ820io support

Changed in this revision

EthernetInterface.lib Show diff for this revision Revisions of this file
WIZ820ioInterface.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-rtos.lib Show diff for this revision Revisions of this file
--- a/EthernetInterface.lib	Sun Dec 01 16:18:57 2013 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://mbed.org/users/mbed_official/code/EthernetInterface/#cba86db5ab96
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/WIZ820ioInterface.lib	Sun Dec 01 18:54:44 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/ban4jp/code/WIZ820ioInterface/#c466db1cd20b
--- a/main.cpp	Sun Dec 01 16:18:57 2013 +0000
+++ b/main.cpp	Sun Dec 01 18:54:44 2013 +0000
@@ -1,8 +1,19 @@
 #include "mbed.h"
-#include "EthernetInterface.h"
+//#include "EthernetInterface.h"
+#include "WIZ820ioInterface.h"
 #include "HTTPClient.h"
 
-EthernetInterface eth;
+//EthernetInterface eth;
+#if defined(TARGET_LPC1114)
+SPI spi(dp2, dp1, dp6); // mosi, miso, sclk
+WIZ820ioInterface eth(&spi, dp25, dp26); // spi, cs, reset
+
+#elif defined(TARGET_LPC1768)
+SPI spi(p5, p6, p7); // mosi, miso, sclk
+WIZ820ioInterface eth(&spi, p25, p26); // spi, cs, reset
+
+#endif
+
 HTTPClient http;
 char str[512];
 
--- a/mbed-rtos.lib	Sun Dec 01 16:18:57 2013 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://mbed.org/users/mbed_official/code/mbed-rtos/#29007aef10a4