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:
85:cd9fdd6ab7e3
Parent:
70:74c11fb71a15
Child:
86:55bc5ddac16c
--- a/link/link.c	Sat Nov 17 18:42:46 2018 +0000
+++ b/link/link.c	Sat Nov 17 18:50:48 2018 +0000
@@ -8,6 +8,7 @@
 #include    "net.h"
 #include   "link.h"
 #include    "nic.h"
+#include    "led.h"
 
 #define  LINK_PIN FIO1PIN(25)
 #define SPEED_PIN FIO1PIN(26)
@@ -38,6 +39,8 @@
     
     LinkActivity = false;
     
+    Led1Set(true);
+
     if (pRx)
     {
         LinkActivity = true;
@@ -46,6 +49,9 @@
     
         NicReleaseReceivedPacket();
     }
+    
+    Led1Set(false);
+    Led2Set(true);
     if (pTx)
     {
         if (!action) action = EthPollForPacketToSend(pTx, &sizeTx);
@@ -56,6 +62,7 @@
             NicSendTransmitPacket(sizeTx);
         }
     }
+    Led2Set(false);
 }
 
 void LinkInit()