WIZNet W5500 with additional enhancements
Fork of WIZnetInterface by
Diff: arch/ext/W5500.cpp
- Revision:
- 12:99e8386ba225
- Parent:
- 11:b319c1859f9b
- Child:
- 13:ec1c34e9ec45
--- a/arch/ext/W5500.cpp Tue Jun 16 12:54:49 2015 +0900 +++ b/arch/ext/W5500.cpp Tue Jun 16 13:00:20 2015 +0900 @@ -472,8 +472,8 @@ } int ethernet_link(void) { - - return (getPHYCFGR()& 0x01); + + return (WIZnet_Chip::getPHYCFGR()& 0x01); } void ethernet_set_link(int speed, int duplex) { @@ -483,10 +483,10 @@ } else { val = (((speed&0x01)<<1)+ (duplex&0x01))<<3; } - setPHYCFGR(PHYCFGR_RST&(PHYCFGR_OPMD|val)); - wait(0.2); - setPHYCFGR((~PHYCFGR_RST)|(PHYCFGR_OPMD|val)); - wait(0.2); + WIZnet_Chip::setPHYCFGR(PHYCFGR_RST&(PHYCFGR_OPMD|val)); + wait(0.2); + WIZnet_Chip::setPHYCFGR((~PHYCFGR_RST)|(PHYCFGR_OPMD|val)); + wait(0.2); } #endif