none changed

Fork of WIZnetInterface by WIZnet

Files at this revision

API Documentation at this revision

Comitter:
embeddist
Date:
Thu Oct 29 13:29:46 2015 +0000
Parent:
28:1169973d836c
Commit message:
-Added defined TARGET_WIZwiki_W7500ECO ; -Fixed defined TARGET_WIZwiki_W7500P@eth_arch.h;

Changed in this revision

EthernetInterface.cpp Show annotated file Show diff for this revision Revisions of this file
EthernetInterface.h Show annotated file Show diff for this revision Revisions of this file
arch/ext/W5500.cpp Show annotated file Show diff for this revision Revisions of this file
arch/int/W7500x_toe.cpp Show annotated file Show diff for this revision Revisions of this file
eth_arch.h Show annotated file Show diff for this revision Revisions of this file
diff -r 1169973d836c -r 200e63e513a8 EthernetInterface.cpp
--- a/EthernetInterface.cpp	Mon Oct 05 05:44:39 2015 +0000
+++ b/EthernetInterface.cpp	Thu Oct 29 13:29:46 2015 +0000
@@ -19,7 +19,7 @@
 #include "EthernetInterface.h"
 #include "DHCPClient.h"
 
-#if (not defined TARGET_WIZwiki_W7500) && (not defined TARGET_WIZwiki_W7500P)
+#if (not defined TARGET_WIZwiki_W7500) && (not defined TARGET_WIZwiki_W7500P) && (not defined TARGET_WIZwiki_W7500ECO)
 EthernetInterface::EthernetInterface(PinName mosi, PinName miso, PinName sclk, PinName cs, PinName reset) :
         WIZnet_Chip(mosi, miso, sclk, cs, reset)
 {
diff -r 1169973d836c -r 200e63e513a8 EthernetInterface.h
--- a/EthernetInterface.h	Mon Oct 05 05:44:39 2015 +0000
+++ b/EthernetInterface.h	Thu Oct 29 13:29:46 2015 +0000
@@ -24,7 +24,7 @@
 class EthernetInterface: public WIZnet_Chip {
 public:
 
-#if (not defined TARGET_WIZwiki_W7500) && (not defined TARGET_WIZwiki_W7500P)
+#if (not defined TARGET_WIZwiki_W7500) && (not defined TARGET_WIZwiki_W7500P) && (not defined TARGET_WIZwiki_W7500ECO)
 
     /**
     * Constructor
diff -r 1169973d836c -r 200e63e513a8 arch/ext/W5500.cpp
--- a/arch/ext/W5500.cpp	Mon Oct 05 05:44:39 2015 +0000
+++ b/arch/ext/W5500.cpp	Thu Oct 29 13:29:46 2015 +0000
@@ -16,7 +16,8 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 #include "eth_arch.h"
-#if (not defined TARGET_WIZwiki_W7500) && (not defined TARGET_WIZwiki_W7500P)
+#if (not defined TARGET_WIZwiki_W7500) && (not defined TARGET_WIZwiki_W7500P) && (not defined TARGET_WIZwiki_W7500ECO)
+
 
 
 #include "mbed.h"
diff -r 1169973d836c -r 200e63e513a8 arch/int/W7500x_toe.cpp
--- a/arch/int/W7500x_toe.cpp	Mon Oct 05 05:44:39 2015 +0000
+++ b/arch/int/W7500x_toe.cpp	Thu Oct 29 13:29:46 2015 +0000
@@ -15,7 +15,7 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 #include "eth_arch.h"
-#if defined(TARGET_WIZwiki_W7500) || defined(TARGET_WIZwiki_W7500P)
+#if defined(TARGET_WIZwiki_W7500) || defined(TARGET_WIZwiki_W7500P) || defined(TARGET_WIZwiki_W7500ECO)
 
 
 #include "mbed.h"
@@ -31,7 +31,7 @@
  * called by ethernet_link() and ethernet_set_link()
  */
  
-#if defined TARGET_WIZwiki_W7500
+#if defined (TARGET_WIZwiki_W7500) || defined(TARGET_WIZwiki_W7500ECO)
 
 #define MDIO    		GPIO_Pin_14
 #define MDC     		GPIO_Pin_15
@@ -46,7 +46,7 @@
 #define CNTL_SPEED      (0x01ul<<12)
 #define MDC_WAIT        (1)
 
-#elif TARGET_WIZwiki_W7500P
+#elif defined (TARGET_WIZwiki_W7500P) 
 
 #define MDIO    		GPIO_Pin_15
 #define MDC     		GPIO_Pin_14
@@ -174,7 +174,7 @@
 	// set PAD strengh and pull-up for TXD[3:0] and TXE 
 #ifdef __DEF_USED_IC101AG__ //For using IC+101AG
 
-#if defined(TARGET_WIZwiki_W7500)
+#if defined(TARGET_WIZwiki_W7500) || defined(TARGET_WIZwiki_W7500ECO)
 
 	*(volatile uint32_t *)(0x41003068) = 0x64; //TXD0 
 	*(volatile uint32_t *)(0x4100306C) = 0x64; //TXD1
@@ -557,3 +557,4 @@
 
 #endif
 
+
diff -r 1169973d836c -r 200e63e513a8 eth_arch.h
--- a/eth_arch.h	Mon Oct 05 05:44:39 2015 +0000
+++ b/eth_arch.h	Thu Oct 29 13:29:46 2015 +0000
@@ -19,14 +19,16 @@
 
 #pragma once
 
-#if defined(TARGET_WIZwiki_W7500) || defined(TARGET_WIZwiki_W7500P)
-
+#if defined(TARGET_WIZwiki_W7500) || defined(TARGET_WIZwiki_W7500ECO)
 
 #include "W7500x_toe.h"
 #define __DEF_USED_IC101AG__  //For using IC+101AG@WIZwiki-W7500
 
+#elif defined(TARGET_WIZwiki_W7500P)
+
+#include "W7500x_toe.h"
+
 #else
-
 #include "W5500.h"            // W5500 Ethernet Shield 
 //#define USE_WIZ550IO_MAC    // WIZ550io; using the MAC address