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 Soohwan Kim

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/)

https://developer.mbed.org/media/cache/platforms/WIZwiki_W7500_enabled.JPG.250x250_q85.jpg

https://developer.mbed.org/media/cache/platforms/WIZwiki_W7500P_enabled2.JPG.250x250_q85.jpg

https://developer.mbed.org/media/cache/platforms/WIZwiki_W7500ECO_enabled2.JPG.250x250_q85.jpg

https://developer.mbed.org/media/cache/components/components/fetch.phpmediaoshw5500_ethernet_shieldw5500_main_picture2.png.200x200_q85.jpg

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

Files at this revision

API Documentation at this revision

Comitter:
Soohwan Kim
Date:
Tue Jun 16 13:03:28 2015 +0900
Parent:
12:99e8386ba225
Child:
14:2101ab5ee40f
Commit message:
on debuggin

Changed in this revision

arch/ext/W5500.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/arch/ext/W5500.cpp	Tue Jun 16 13:00:20 2015 +0900
+++ b/arch/ext/W5500.cpp	Tue Jun 16 13:03:28 2015 +0900
@@ -473,7 +473,7 @@
 
 int ethernet_link(void) {
 
-	return (WIZnet_Chip::getPHYCFGR()& 0x01);
+	return ((uint8_t)(WIZnet_Chip::getPHYCFGR())& 0x01);
 }
 
 void ethernet_set_link(int speed, int duplex) {
@@ -483,9 +483,9 @@
 	} else {
 		val = (((speed&0x01)<<1)+ (duplex&0x01))<<3; 
 	}
-	WIZnet_Chip::setPHYCFGR(PHYCFGR_RST&(PHYCFGR_OPMD|val));
+	WIZnet_Chip::setPHYCFGR((uint8_t)(PHYCFGR_RST&(PHYCFGR_OPMD|val)));
 	wait(0.2);
-	WIZnet_Chip::setPHYCFGR((~PHYCFGR_RST)|(PHYCFGR_OPMD|val));
+	WIZnet_Chip::setPHYCFGR((uint8_t)((~PHYCFGR_RST)|(PHYCFGR_OPMD|val)));
 	wait(0.2);
 }