A stack which works with or without an Mbed os library. Provides IPv4 or IPv6 with a full 1500 byte buffer.

Dependents:   oldheating gps motorhome heating

Revision:
43:bc028d5a6424
Parent:
42:222a4f45f916
Child:
44:83ce5ace337b
--- a/net.cpp	Sun Oct 15 17:54:09 2017 +0000
+++ b/net.cpp	Thu Oct 19 20:56:58 2017 +0000
@@ -10,12 +10,11 @@
 #include    "ra.h"
 #include   "ntp.h"
 #include    "io.h"
-#include "clock.h"
 
 
-bool NetTraceBack = false;
-bool NetTraceForward = false;
-
+bool NetTraceStack      = false;
+bool NetTraceNewLine    = false;
+bool NetTraceVerbose    = false;
 bool NetPreferIp4Polled = false;
 
 char* NetName;
@@ -104,13 +103,8 @@
     PhyMain();
      ArMain();
      NrMain();
-    if (ClockTicked)
-    {
-        DhcpTick();
-          ArTick();
-          NrTick();
-         DnsTick();
-          RaTick();
-    }
+   DhcpMain();
+    DnsMain();
+     RaMain();
     return 0;
 }
\ No newline at end of file