#ifndef _LWIP_DRIVER_H_ #define _LWIP_DRIVER_H_ /***************************************************************************//** * @addtogroup Drivers * @{ ******************************************************************************/ #ifdef __cplusplus extern "C" { #endif #include #include "netif/etharp.h" #include "lwip/tcp_impl.h" #include "lwip/mem.h" #include "lwip/memp.h" #define ETH_MAC_ADDR_LEN 6 /**< MAC Address length */ #define IFNAME0 'e' #define IFNAME1 'n' err_t LWIP_driver_init(struct netif *netif); void LWIP_driver_input(struct netif *netif); err_t LWIP_driver_output(struct netif *netif, struct pbuf *p); void LWIP_loop(struct netif *netif, uint32_t *global_timestamp); static uint32_t timestamp_ETH_ARP; static uint32_t timestamp_ETH_TCP; static uint32_t *timestamp_current; static struct netif *localNetif; #ifdef __cplusplus } #endif /** @} (end group Drivers) */ #endif //_LWIP_DRIVER_H_