lwip_net.cdl

来自「eCos操作系统源码」· CDL 代码 · 共 680 行 · 第 1/2 页

CDL
680
字号
#====================================================================##      lwip_net.cdl##      lwIP network stack configuration data## ====================================================================#####ECOSGPLCOPYRIGHTBEGIN###### -------------------------------------------## This file is part of eCos, the Embedded Configurable Operating System.## Copyright (C) 2004 eCosCentric #### eCos 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 or (at your option) any later version.#### eCos 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 eCos; if not, write to the Free Software Foundation, Inc.,## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.#### As a special exception, if other files instantiate templates or use macros## or inline functions from this file, or you compile this file and link it## with other works to produce a work based on this file, this file does not## by itself cause the resulting work to be covered by the GNU General Public## License. However the source code for this file must still be made available## in accordance with section (3) of the GNU General Public License.#### This exception does not invalidate any other reasons why a work based on## this file might be covered by the GNU General Public License.#### -------------------------------------------#####ECOSGPLCOPYRIGHTEND##### ====================================================================######DESCRIPTIONBEGIN###### Author(s):	 cris@iv.ro, jani@iv.ro# Original data: jani@iv.ro # Contributors:   # Date:           2002-06-21######DESCRIPTIONEND###### ====================================================================cdl_package CYGPKG_NET_LWIP {	display "lwIP"	description	"Lightweight TCP/IP stack"		requires {(CYGPKG_LWIP_ETH ==  1) || (CYGPKG_LWIP_SLIP == 1) || (CYGPKG_LWIP_PPP == 1)}	compile	core/mem.c	\		core/memp.c	\		core/netif.c	\		core/pbuf.c	\		core/stats.c	\		core/sys.c	\		core/tcp.c	\		core/tcp_in.c	\		core/tcp_out.c	\		core/inet.c	\		core/ipv4/icmp.c	\		core/ipv4/ip.c	\		core/ipv4/ip_addr.c	\		core/ipv4/ip_frag.c	\		api/api_lib.c	\		api/api_msg.c	\		api/tcpip.c	\		api/err.c	\		api/sockets.c	\		ecos/sys_arch.c	\		ecos/init.c				cdl_component CYGPKG_LWIP_STATS {		display		"Turn ON/OFF statistics"		flavor 		bool		default_value	0		description	"			Check this box to turn ON statistics options for lwIP."	}			cdl_component CYGPKG_LWIP_DEBUG {		display		"Turn ON/OFF debug options"		flavor 		bool		default_value	0		description	"			Check this box to turn ON debug options for lwIP."		cdl_option CYGPKG_LWIP_DEBUG_TCP {			display	"Control TCP debug"			flavor 		bool			default_value	0			description	"				Generic TCP debug switch."					}			}	cdl_component CYGPKG_LWIP_ASSERTS {		display		"Turn ON/OFF assertions"		flavor 		bool		default_value	0		description	"			Check this box to turn ON assertions for lwIP."	}	cdl_component CYGPKG_LWIP_IPV4_CONF {		display		"IPV4 netconf"		flavor 		none		no_define		description   	"			See suboptions to define gateway IP, local IP and netmask."				cdl_option CYGPKG_LWIP_SERV_ADDR {			display		"Gateway IP"			flavor		data			default_value 	{"192,168,1,1"}			description   	"				Gateway's IP address."		}		cdl_option CYGPKG_LWIP_MY_ADDR {			display		"My IP"			flavor		data			default_value 	{"192,168,1,222"}			description   	"				The IP address for this device."		}		cdl_option CYGPKG_LWIP_NETMASK {			display		"Netmask"			flavor		data			default_value 	{"255,255,255,0"}			description   	"				Netmask of the local network."		}	}		cdl_component CYGPKG_LWIP_MEM_OPTIONS {		display		"Memory options"		flavor 		none		no_define		description   	"			Tunables for various aspects of memory usage throughout the stack."									cdl_option CYGPKG_LWIP_MEM_ALIGNMENT {			display		"Memory alignment"			flavor		data			default_value 	4			description   	"				 MEM_ALIGNMENT: should be set to the alignment of the CPU for which				 lwIP is compiled. 4 byte alignment -> define MEM_ALIGNMENT to 4,				 2 byte alignment -> define MEM_ALIGNMENT to 2."		}		 		cdl_option CYGPKG_LWIP_MEM_SIZE {			display		"Memory size"			flavor		data			default_value 	4000			description   	"				MEM_SIZE: the size of the heap memory. If the application will send				a lot of data that needs to be copied, this should be set high."						}		 		cdl_option CYGPKG_LWIP_MEMP_NUM_PBUF {			display		"Number of memp struct pbufs"			flavor		data			default_value 	8			description   	"				 MEMP_NUM_PBUF: the number of memp struct pbufs. If the application				 sends a lot of data out of ROM (or other static memory), this				 should be set high."				 		}		 		cdl_option CYGPKG_LWIP_MEMP_NUM_UDP_PCB {			display		"Simultaneous UDP control blocks "			flavor		data			default_value 	4			description   	"				MEMP_NUM_UDP_PCB: the number of UDP protocol control blocks. One				per active UDP 'connection'."						}		 		cdl_option CYGPKG_LWIP_MEMP_NUM_TCP_PCB {			display		"Simultaneous active TCP connections "			flavor		data			default_value 	5			description   	"				MEMP_NUM_TCP_PCB: the number of simulatenously active TCP				connections."						}		 		cdl_option CYGPKG_LWIP_MEMP_NUM_TCP_PCB_LISTEN {			display		"Listening TCP connections"			flavor		data			default_value 	8			description   	"				 MEMP_NUM_TCP_PCB_LISTEN: the number of listening TCP				 connections."				 		}		 		cdl_option CYGPKG_LWIP_MEMP_NUM_TCP_SEG {			display		"Simultaneous TCP segments queued"			flavor		data			default_value 	8			description   	"				MEMP_NUM_TCP_SEG: the number of simultaneously queued TCP				segments."						}		 		cdl_option CYGPKG_LWIP_MEMP_NUM_SYS_TIMEOUT {			display		"Simultaneous active timeouts"			flavor		data			default_value 	3			description   	"				MEMP_NUM_SYS_TIMEOUT: the number of simulateously active				timeouts."				}		 		cdl_component CYGPKG_LWIP_CYGPKG_LWIP_MEM_SEQ_API {			display		"Sequential API settings"			flavor 		none			no_define			description	"				The following four are used only with the sequential API and can be  			        set to 0 if the application only will use the raw API."					cdl_option CYGPKG_LWIP_MEMP_NUM_NETBUF {				display		"Struct netbufs"				flavor		data				default_value 	2				description   	"					MEMP_NUM_NETBUF: the number of struct netbufs."								}		 			cdl_option CYGPKG_LWIP_MEMP_NUM_NETCONN {				display		"Struct netconns"				flavor		data				default_value 	4				description   	"					MEMP_NUM_NETCONN: the number of struct netconns."								}		 			cdl_option CYGPKG_LWIP_MEMP_NUM_APIMSG {				display		"Struct api_msgs"				flavor		data				default_value 	8				description   	"					MEMP_NUM_APIMSG: the number of struct api_msg, used for					communication between the TCP/IP stack and the sequential					programs."								}		 			cdl_option CYGPKG_LWIP_MEMP_NUM_TCPIP_MSG {				display		"Struct tcpip_msgs"				flavor		data				default_value 	8				description   	"					MEMP_NUM_TCPIPMSG: the number of struct tcpip_msg, which is used					for sequential API communication and incoming packets. Used in					src/api/tcpip.c."			}		 		}	}		cdl_component CYGPKG_LWIP_PBUF_OPTIONS {		display		"PBUF"		flavor 		none		no_define		description   	"		Packet buffer related tunings."					cdl_option CYGPKG_LWIP_PBUF_POOL_SIZE {			display		"PBUF pool size"			flavor		data			default_value 	60			description   	"			PBUF_POOL_SIZE: the number of buffers in the pbuf pool."			}				cdl_option CYGPKG_LWIP_PBUF_POOL_BUFSIZE {			display		"PBUF buffer size"			flavor		data			default_value 	1024			description   	"			PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool."		}		 		cdl_option CYGPKG_LWIP_PBUF_LINK_HLEN {			display		"Allocation for a link level header"			flavor		data			calculated 	{CYGPKG_LWIP_SLIP || CYGPKG_LWIP_PPP ? 0 : 16}			description   	"				PBUF_LINK_HLEN: the number of bytes that should be allocated for a				link level header."			}		 	}		cdl_component CYGPKG_LWIP_TCP_OPTIONS {		display		"TCP"		flavor 		none		no_define		description   	"		Tune the TCP protocol details"					cdl_option CYGPKG_LWIP_TCP {			display		"Activate TCP"			flavor		bool			default_value 	1			description   	""		}				cdl_option CYGPKG_LWIP_TCPIP_THREAD_PRIORITY {			display "tcpip thread priority"			flavor data			default_value	7			description "Pririty of the lwIP network thread.This thread handles all API messages and					network packets."		}		 				cdl_option CYGPKG_LWIP_TCP_TTL {			display		"Time To Live"			flavor		data			default_value 	255			description   	""		}		 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?