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.
Fork of WIZnetInterface by
Revision 29:200e63e513a8, committed 2015-10-29
- 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
--- 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)
{
--- 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
--- 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"
--- 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 +
--- 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
