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:
99:962440a00ead
Parent:
70:74c11fb71a15
Child:
160:6a1d1d368f80
--- a/link/nic.c	Thu Jan 03 17:23:38 2019 +0000
+++ b/link/nic.c	Sat Jan 05 18:11:02 2019 +0000
@@ -1,7 +1,7 @@
 #include <stdint.h>
 
 #include "nicdefs.h"
-#include "nicmac.h"
+#include "semihost.h"
 #include "log.h"
 
 #define NUM_RX_FRAMES       6           // Number of Rx Frames (== packets) was 3
@@ -250,7 +250,7 @@
     NicLinkSetSpeedDuplex(-1, 0);
     
     // Set the Ethernet MAC Address registers
-    NicMac(mac);
+    SemihostMac(mac);
     SA0 = ((uint32_t)mac[5] << 8) | (uint32_t)mac[4];
     SA1 = ((uint32_t)mac[3] << 8) | (uint32_t)mac[2];
     SA2 = ((uint32_t)mac[1] << 8) | (uint32_t)mac[0];