lwIP: integrate lwIP with the BeRTOS wizard
authorarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 1 Nov 2010 16:26:46 +0000 (16:26 +0000)
committerarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 1 Nov 2010 16:26:46 +0000 (16:26 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4489 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/net/lwip.c [new file with mode: 0644]
bertos/net/lwip.h [new file with mode: 0644]

diff --git a/bertos/net/lwip.c b/bertos/net/lwip.c
new file mode 100644 (file)
index 0000000..376a1cc
--- /dev/null
@@ -0,0 +1,108 @@
+/**
+ * \file
+ * <!--
+ * This file is part of BeRTOS.
+ *
+ * Bertos is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ *
+ * As a special exception, you may use this file as part of a free software
+ * library without restriction.  Specifically, if other files instantiate
+ * templates or use macros or inline functions from this file, or you compile
+ * this file and link it with other files to produce an executable, this
+ * file does not by itself cause the resulting executable to be covered by
+ * the GNU General Public License.  This exception does not however
+ * invalidate any other reasons why the executable file might be covered by
+ * the GNU General Public License.
+ *
+ * Copyright 2010 Develer S.r.l. (http://www.develer.com/)
+ *
+ * -->
+ * \brief lwIP TCP/IP stack module
+ *
+ * \author Andrea Righi        <arighi@develer.com>
+ */
+
+/* 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 (file)
index 0000000..3e2c5ed
--- /dev/null
@@ -0,0 +1,46 @@
+/**
+ * \file
+ * <!--
+ * This file is part of BeRTOS.
+ *
+ * Bertos is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ *
+ * As a special exception, you may use this file as part of a free software
+ * library without restriction.  Specifically, if other files instantiate
+ * templates or use macros or inline functions from this file, or you compile
+ * this file and link it with other files to produce an executable, this
+ * file does not by itself cause the resulting executable to be covered by
+ * the GNU General Public License.  This exception does not however
+ * invalidate any other reasons why the executable file might be covered by
+ * the GNU General Public License.
+ *
+ * Copyright 2010 Develer S.r.l. (http://www.develer.com/)
+ *
+ * -->
+ * \brief lwIP TCP/IP stack module
+ *
+ * \author Andrea Righi        <arighi@develer.com>
+ *
+ * $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 */