This is Library using WIZnet Hardware TCP/IP chip, W5500 and WIZnet TCP/IP Offload Engine, W7500.
Dependents: HTTP_SDcard_file_server_WIZwiki-W7500 SSD1306_smart_watch TCPEchoServer-WIZwiki-W7500 httpServer-WIZwiki-W7500 ... more
Fork of WIZnetInterface by
This is WIZnet Ethernet Interface using Hardware TCP/IP chip, W5500 and TCP/IP Offload Engine, W7500.
[Users » embeddist » Code » WIZnetInterface](https://developer.mbed.org/users/embeddist/code/WIZnetInterface/) -> WIZnetInterface Lib will be released on [Team WIZnet](https://developer.mbed.org/teams/WIZnet/)
- WIZwiki_W7500 : /platforms/WIZwiki-W7500/
- WIZwiki_W7500P : /platforms/WIZwiki-W7500P/
- WIZwiki_W7500ECO : /platforms/WIZwiki-W7500ECO/
- W5500 Ethernet Shield : /components/W5500-Ethernet-Kit-for-IoT/
This library is an Ethernet Interface library port-based on [EthernetInterface](https://developer.mbed.org/users/mbed_official/code/EthernetInterface/docs/tip/).
For more detail, visit http://embeddist.blogspot.kr/2015/06/wiznetinterface-for-armmbed.html
Diff: arch/int/W7500x_toe.cpp
- Revision:
- 8:4c02de1dbf3a
- Parent:
- 3:f8c6efc8bf83
- Child:
- 14:2101ab5ee40f
--- a/arch/int/W7500x_toe.cpp Mon Jun 15 23:43:56 2015 +0000 +++ b/arch/int/W7500x_toe.cpp Tue Jun 16 11:11:11 2015 +0900 @@ -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" -#ifdef USE_W7500 +#if defined(TARGET_WIZwiki_W7500) #include "mbed.h" #include "mbed_debug.h" @@ -53,6 +53,14 @@ mdio_init(GPIO_MDC, MDC, MDIO); } +bool WIZnet_Chip::setmac() +{ + + for (int i =0; i < 6; i++) reg_wr<uint8_t>(SHAR+i, mac[i]); + + return true; +} + // Set the IP bool WIZnet_Chip::setip() { @@ -488,4 +496,3 @@ } #endif -