#ifndef _LWIP_DRIVER_H_ #define _LWIP_DRIVER_H_ #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' /** Initialization function that should be passed to netif_add */ err_t LWIP_driver_init(struct netif *netif); /** Called when a raw packet is ready to be transmitted. */ err_t LWIP_driver_output(struct netif *netif, struct pbuf *p); /** Called when a packet is received */ static void LWIP_driver_input(struct netif *netif); /** LWIP main loop */ void LWIP_loop(struct netif *netif, uint32_t *global_timestamp); /** Timestamp capabilities */ void LWIP_driver_timestamp_engine(void); static struct pbuf *low_level_input(struct netif *netif); static void ethernetif_input(struct netif *netif); static uint32_t timestamp_ETH_ARP; static uint32_t timestamp_ETH_TCP; static uint32_t *timestamp_current; static struct netif *localNetif; #endif //_LWIP_DRIVER_H_