From b8af8dc682989ac879ddf67675ce3c11f05df4ad Mon Sep 17 00:00:00 2001 From: arighi Date: Mon, 1 Nov 2010 16:26:46 +0000 Subject: [PATCH] lwIP: integrate lwIP with the BeRTOS wizard git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4489 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/net/lwip.c | 108 ++++++++++++++++++++++++++++++++++++++++++++++ bertos/net/lwip.h | 46 ++++++++++++++++++++ 2 files changed, 154 insertions(+) create mode 100644 bertos/net/lwip.c create mode 100644 bertos/net/lwip.h diff --git a/bertos/net/lwip.c b/bertos/net/lwip.c new file mode 100644 index 00000000..376a1cc9 --- /dev/null +++ b/bertos/net/lwip.c @@ -0,0 +1,108 @@ +/** + * \file + * + * \brief lwIP TCP/IP stack module + * + * \author Andrea Righi + */ + +/* XXX: exclude all the lwIP stuff from the BeRTOS documentation for now */ +#ifndef __doxygen__ +/* Ensure that the lwIP compile-time options are included first. */ +#include "cfg/cfg_lwip.h" + +/* lwIP high-level API code */ +#include "lwip/src/api/api_lib.c" +#include "lwip/src/api/api_msg.c" +#include "lwip/src/api/err.c" +#include "lwip/src/api/netbuf.c" +#include "lwip/src/api/netdb.c" +#include "lwip/src/api/netifapi.c" +#include "lwip/src/api/sockets.c" +#include "lwip/src/api/tcpip.c" + +/* Core lwIP TCP/IP stack */ +#include "lwip/src/core/dhcp.c" +#include "lwip/src/core/dns.c" +#include "lwip/src/core/init.c" +#include "lwip/src/core/mem.c" +#include "lwip/src/core/memp.c" +#include "lwip/src/core/netif.c" +#include "lwip/src/core/pbuf.c" +#include "lwip/src/core/raw.c" +#include "lwip/src/core/stats.c" +#include "lwip/src/core/sys.c" +#include "lwip/src/core/tcp.c" +#include "lwip/src/core/tcp_in.c" +#include "lwip/src/core/tcp_out.c" +#include "lwip/src/core/udp.c" + +/* lwIP IPV4 implementation */ +#include "lwip/src/core/ipv4/autoip.c" +#include "lwip/src/core/ipv4/icmp.c" +#include "lwip/src/core/ipv4/igmp.c" +#include "lwip/src/core/ipv4/inet.c" +#include "lwip/src/core/ipv4/inet_chksum.c" +#include "lwip/src/core/ipv4/ip.c" +#include "lwip/src/core/ipv4/ip_addr.c" +#include "lwip/src/core/ipv4/ip_frag.c" + +/* lwIP SNMP implementation */ +#include "lwip/src/core/snmp/asn1_dec.c" +#include "lwip/src/core/snmp/asn1_enc.c" +#include "lwip/src/core/snmp/mib2.c" +#include "lwip/src/core/snmp/mib_structs.c" +#include "lwip/src/core/snmp/msg_in.c" +#include "lwip/src/core/snmp/msg_out.c" + +/* lwIP network interface */ +#include "lwip/src/netif/etharp.c" +#include "lwip/src/netif/loopif.c" + +/* lwIP PPP implementation */ +#include "lwip/src/netif/ppp/auth.c" +#include "lwip/src/netif/ppp/chap.c" +#include "lwip/src/netif/ppp/chpms.c" +#include "lwip/src/netif/ppp/fsm.c" +#include "lwip/src/netif/ppp/ipcp.c" +#include "lwip/src/netif/ppp/lcp.c" +#include "lwip/src/netif/ppp/magic.c" +#include "lwip/src/netif/ppp/md5.c" +#include "lwip/src/netif/ppp/pap.c" +#include "lwip/src/netif/ppp/ppp.c" +#include "lwip/src/netif/ppp/ppp_oe.c" +#include "lwip/src/netif/ppp/randm.c" +#include "lwip/src/netif/ppp/vj.c" + +/* BeRTOS-specific lwIP interface/porting layer */ +#include "lwip/src/netif/ethernetif.c" +#include "lwip/src/arch/sys_arch.c" +#endif /* __doxygen__ */ diff --git a/bertos/net/lwip.h b/bertos/net/lwip.h new file mode 100644 index 00000000..3e2c5ed7 --- /dev/null +++ b/bertos/net/lwip.h @@ -0,0 +1,46 @@ +/** + * \file + * + * \brief lwIP TCP/IP stack module + * + * \author Andrea Righi + * + * $WIZ$ module_name = "lwip" + * $WIZ$ module_configuration = "bertos/cfg/cfg_lwip.h" + * $WIZ$ module_depends = "kern", "signal", "msg", "semaphores", "event", "eth" + */ + +#ifndef NET_LWIP_H +#define NET_LWIP_H + +#include "cfg/cfg_lwip.h" + +#endif /* NET_LWIP_H */ -- 2.25.1