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/ext/W5500.cpp
- Revision:
- 10:0d17643de5fd
- Parent:
- 8:4c02de1dbf3a
- Child:
- 11:b319c1859f9b
--- a/arch/ext/W5500.cpp Tue Jun 16 11:20:00 2015 +0900 +++ b/arch/ext/W5500.cpp Tue Jun 16 11:24:30 2015 +0900 @@ -472,7 +472,7 @@ } int ethernet_link(void) { - return (reg_rd<uint8_t>(PHYCFGR) & 0x01); + return (getPHYCFGR()& 0x01); } void ethernet_set_link(int speed, int duplex) { @@ -482,10 +482,10 @@ } else { val = (((speed&0x01)<<1)+ (duplex&0x01))<<3; } - reg_wr<uint32_t>(PHYCFGR, PHYCFGR_RST&(PHYCFGR_OPMD|val)); - wait(0.2); - reg_wr<uint32_t>(PHYCFGR, (~PHYCFGR_RST)|(PHYCFGR_OPMD|val)); - wait(0.2); + setPHYCFGR(PHYCFGR_RST&(PHYCFGR_OPMD|val); + wait(0.2); + setPHYCFGR((~PHYCFGR_RST)|(PHYCFGR_OPMD|val); + wait(0.2); } #endif