Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Networking/LwipEthernet/LwipEthernetInterface.cpp')
-rw-r--r--src/Networking/LwipEthernet/LwipEthernetInterface.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Networking/LwipEthernet/LwipEthernetInterface.cpp b/src/Networking/LwipEthernet/LwipEthernetInterface.cpp
index 5b9aa927..5b8a726a 100644
--- a/src/Networking/LwipEthernet/LwipEthernetInterface.cpp
+++ b/src/Networking/LwipEthernet/LwipEthernetInterface.cpp
@@ -20,7 +20,12 @@
#include "General/IP4String.h"
#include "Version.h" // version is reported by MDNS
#include "GMAC/ethernet_sam.h"
-#include <Hardware/SAME70/same70_gmac.h> // for error counts used in function Diagnostics
+
+#if SAME70
+# include <Hardware/SAME70/Ethernet/gmac.h>
+#elif SAME5x
+# include <Hardware/SAME5x/Ethernet/gmac.h>
+#endif
extern "C"
{