Added RAW sockets.

Fork of WIZnetInterface by WIZnet

Revision:
13:ec1c34e9ec45
Parent:
12:99e8386ba225
Child:
14:2101ab5ee40f
--- 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);
 }