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/Hardware/SAME70/Ethernet/GmacInterface.h')
-rw-r--r--src/Hardware/SAME70/Ethernet/GmacInterface.h16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/Hardware/SAME70/Ethernet/GmacInterface.h b/src/Hardware/SAME70/Ethernet/GmacInterface.h
index 1cbe7ad9..86b490fb 100644
--- a/src/Hardware/SAME70/Ethernet/GmacInterface.h
+++ b/src/Hardware/SAME70/Ethernet/GmacInterface.h
@@ -45,18 +45,15 @@
#ifndef SAME70_ETHERNET_GMACINTERFACE_H_INCLUDED
#define SAME70_ETHERNET_GMACINTERFACE_H_INCLUDED
-#ifdef __cplusplus
extern "C" {
-#endif
-
#include "lwip/err.h"
#include "lwip/ip_addr.h"
#include "lwip/netif.h"
#include "netif/etharp.h"
-
-#ifdef __cplusplus
}
+#include <Platform/MessageType.h>
+
err_t ethernetif_init(struct netif *netif) noexcept; // called by LwIP to initialise the interface
void ethernetif_terminate() noexcept; // called when we shut down
@@ -71,13 +68,6 @@ bool ethernetif_link_established() noexcept; // asks the PHY if the link is s
void ethernetif_set_mac_address(const uint8_t macAddress[]) noexcept;
-#endif
-
-// Error counters
-extern unsigned int rxErrorCount;
-extern unsigned int rxBuffersNotFullyPopulatedCount;
-extern unsigned int txErrorCount;
-extern unsigned int txBufferNotFreeCount;
-extern unsigned int txBufferTooShortCount;
+void ethernetif_diagnostics(MessageType mtype) noexcept;
#endif /* SAME70_ETHERNET_GMACINTERFACE_H_INCLUDED */