This is the Interface library for WIZnet W5500 chip which forked of EthernetInterfaceW5500, WIZnetInterface and WIZ550ioInterface. This library has simple name as "W5500Interface". and can be used for Wiz550io users also.

Dependents:   EvrythngApi Websocket_Ethernet_HelloWorld_W5500 Websocket_Ethernet_W5500 CurrentWeatherData_W5500 ... more

Information

It has EthernetInterface class like official EthernetInterface , but uses Wiznet chip driver codes.

So this library can use only the WIZnet W5500 or WIZ550io users.

This library has referred to many project such as WIZ550ioInterface, WiflyInterface and WIZnet Library.

Thanks all.

Files at this revision

API Documentation at this revision

Comitter:
Bongjun
Date:
Wed Aug 20 05:09:16 2014 +0000
Parent:
1:8f4374f932b4
Child:
3:a5d99521e9cc
Commit message:
rollback code of wait_readable() in W5500.cpp

Changed in this revision

WIZnet/W5500.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/WIZnet/W5500.cpp	Wed Aug 20 01:55:36 2014 +0000
+++ b/WIZnet/W5500.cpp	Wed Aug 20 05:09:16 2014 +0000
@@ -177,14 +177,7 @@
     t.reset();
     t.start();
     while(1) {
-        //int size = sreg<uint16_t>(socket, Sn_RX_RSR);
-        // during the reading Sn_RX_RXR, it has the possible change of this register.
-        // so read twice and get same value then use size information.
-        do {
-            size = sreg<uint16_t>(socket, Sn_RX_RSR);
-            size2 = sreg<uint16_t>(socket, Sn_RX_RSR);
-        } while (size != size2);
-
+        int size = sreg<uint16_t>(socket, Sn_RX_RSR);
 
         if (size > req_size) {
             return size;