Lm3s LWIP configuration file 2

Source: Internet
Author: User
//************************************** ***************************************/ /// Lwipopts. h-configuration file for LWIP /// copyright (c) 2008-2010 Texas Instruments inreceivated. all rights reserved. // software license agreement /// Texas Instruments (TI) is supplying this software for use solely and // exclusively on TI's microcontroller products. the software is owned by // Ti and/or its suppliers, and is protected under applicable copyright // laws. you may not combine this software with "viral" open-source // software in order to form a larger program. /// this software is provided "as is" and with all faults. // no warranties, whether express, implied or statutory, Including, but // not limited to, implied warranties of merchantability and fitness for // a special purpose apply to this software. ti shall not, under any // circumstances, be liable for special, incidental, or consequential // damages, for any reason whatsoever. /// this is part of revision 6594 of the EK-LM3S6965 firmware package. ////************************************ **************************************** * /// note: this file has been derived from the LWIP/src/include/LWIP/OPT. h // header file. //// for additional details, refer to the original "opt. H "file, and LWIP // documentation. ////************************************ **************************************** * # ifndef _ lwipopts_h __# DEFINE _ lwipopts_h __//************************ **************************************** * *********** // ---------- stellaris/LWIP port options ----------////************ **************************************** * ********************** # define host_tmr_interval 100 // default is 0 // # define dhcp_expire_timer_msecs (60*1000) // # define include_httpd_ssi // # define include_httpd_cgi # define dynamic_http_headers // # define include_httpd_debug //******************** **************************************** * *************** // ---------- platform specific locking ----------////********** **************************************** * ************************* # define sys_lightweight_prot 1 // default is 0 # define no_sys 1 // default is 0 // # define memcpy (DST, SRC, Len) memcpy (DST, SRC, Len) // # define smemcpy (DST, SRC, Len) memcpy (DST, SRC, Len) //************************************** ***************************************/ /// ---------- memory options ----------////***************************** **************************************** * ******* // # define mem_libc_malloc 0 # define mem_alignment 4 // default is 1 # define mem_size (22*1024) // default is 1600, was 16 K (22*1024) // # define memp_overflow_check 0 // # define memp_sanity_check 0 // # define mem_use_pools 0 // # define memp_use_custom_pools 0 //************** **************************************** ********************** // ---------- internal memory pool sizes ----------////*** **************************************** ******************************** # define memp_num_pbuf 24 // default 16, was 16 (24) // # define memp_num_raw_pcb 4 // # define memp_num_udp_pcb 4 # define memp_num_tcp_pcb 16 // default 5, was 12 // # define limit 8 // # define limit 16 // # define memp_num_reassdata 5 // # define Limit 30 // # define memp_num_igmp_group 8 // # define memp_num_sys_timeout 3 // # define memp_num_netbuf 2 // # define memp_num_netconn 4 // # define memp_num_tcpip_msg_api 8 // # define limit 8 # define pbuf_pool_size 24 // default 16, was 36 //************************************ **************************************** * // ---------- ARP options ----------////*************************** **************************************** * ******** // # define lwip_arp 1 // # define arp_table_size 10 // # define arp_queueing 1 // # define etharp_trust_ip_mac 1 //**** **************************************** * ******************************** // ---------- IP Options ----------////*********************************** **************************************** ** // # define ip_forward 0 // # define ip_options_allowed 1 # define ip_reassembly 0 // default is 1 # define ip_frag 0 // default is 1 // # define ip_reass_maxage 3 // # define ip_reass_max_pbufs 10 // # define limit 1 // # define ip_frag_max_mtu 1500 // # define ip_default_ttl 255 //**************** **************************************** * ******************* // ---------- ICMP options ----------////******* **************************************** * **************************** // # define lwip_icmp 1 // # define icmp_ttl (ip_default_ttl) //************************************** ***************************************/ /// ---------- raw options ----------////***************************** **************************************** * ******* // # define lwip_raw 1 // # define raw_ttl (ip_default_ttl) //************************************** ***************************************/ /// ---------- DHCP options ----------////***************************** **************************************** * ******* # define lwip_dhcp 0 // default is 0 // # define lwip_dhcp 1 // default is 0 // # define dhcp_does_arp_check (lwip_dhcp) & (lwip_arp )) //************************************** ***************************************/ /// ---------- UPnP options ----------////***************************** **************************************** ******* // # define lwip_upnp 0 //************************ **************************************** * *********** // D // ---------- ptpd options ----------////************** **************************************** ********************** // # define lwip_ptpd 0 //********* **************************************** * ************************** // ---------- autoip options ----------//// **************************************** * ********************************** # define lwip_autoip 0 // default is 0 // # define lwip_autoip 1 // default is 0 # define lwip_dhcp_autoip_coop (lwip_dhcp) & (lwip_autoip )) // default is 0 # define lwip_dhcp_autoip_coop_tries 5 // default is 9 //************************ **************************************** * *********** // ---------- SNMP options ----------////*************** **************************************** * ******************** // # define lwip_snmp 0 // # define snmp_concurrent_requests 1 // # define snmp_trap_destinations 1 // # define snmp_private_mib 0 // # define snmp_safe_requests 1 //************************** **************************************** * ********* // ---------- IGMP options ----------////***************** **************************************** ******************* // # define lwip_igmp 0 //************ **************************************** * ********************** // ---------- DNS options -----------////*** **************************************** ********************************* // # define lwip_dns 0 // # define dns_table_size 4 // # define dns_max_name_length 256 // # define dns_max_servers 2 // # define limit 1 // # define limit 1 // # define dns_msg_size 512 //** **************************************** ***********************************////---------- UDP options ----------////********************************* **************************************** * *** // # define lwip_udp 1 // # define lwip_udplite 0 // # define udp_ttl (ip_default_ttl) //************************************** ***************************************/ /// ---------- TCP options ----------////***************************** **************************************** * ******* // # define lwip_tcp 1 // previously commented out // # define tcp_ttl (ip_default_ttl) // previously commented # define tcp_wnd 4096 // default is 2048 // # define tcp_maxrtx 12 // previously commented out // # define tcp_synmaxrtx 6 // previously commented out // # define tcp_queue_ooseq 1 // previously commented # define tcp_mss 1500 // default is 128 1500 // # define tcp_calculate_eff_send_mss 1 # define tcp_snd_buf (60 * tcp_mss) //, 4 * // default is 256, was 6 * // # define tcp_snd_queuelen (4 * (tcp_snd_buf/tcp_mss )) // previously commented 4 * // # define tcp_sndlowat (tcp_snd_buf/2) // # define tcp_listen_backlog 0 // # define tcp_default_listen_backlog 0xff //************************** **************************************** * ********* // ---------- API options ----------////***************** **************************************** ******************* // # define lwip_event_api 0 // # define lwip_callback_api 1 //****** **************************************** * ***************************** // ---------- pbuf options ----------/ ///************************************* **************************************** # define pbuf_link_hlen 16 // default is 14 # define pbuf_pool_bufsize 256 // default is lwip_mem_align_size (tcp_mss + 40 + pbuf_link_hlen) # define eth_pad_size 2 // default is 0 //***************************** **************************************** ******* // ------------ network interfaces options ----------////******************* **************************************** * **************** // # define lwip_netif_hostname 0 // # define lwip_netif_api 0 // # define lwip_netif_status_callback 0 // # define lwip_netif_link_callback 0 // # define lwip_netif_hwaddrhint 0 //****************************** **************************************** * ****** // ------------ loopif options ----------////********************* **************************************** *************** // # define lwip_have_loopif 0 // # define lwip_loopif_multithreading 1 //********** **************************************** * ************************* // ---------- thread options ----------////* **************************************** *********************************** // # define tcpip_thread_name "tcpip_thread" // # define defaults 0 // # define limit 1 // # define limit 0 // # define slipif_thread_name "slipif_loop" // # define limit 0 // # define limit 0 secrets 1 // # define ppp_thread_name "pppmain" // # define ppp_thread_stacksize 0 // # define ppp_thread_prio 1 // # define default_thread_name "LWIP" // # define defaults 0 // # define default_thread_prio 1 // # define default_raw_recvmbox_size 0 // # define defaults 0 // # define defaults 0 // # define default_acceptmbox_size 0 //************ **************************************** *********************** // ---------- sequential layer options ----------////** **************************************** * ******************************** // # define lwip_tcpip_core_locking 0 # define lwip_netconn 0 // default is 1 //**************************** **************************************** * ******** // ---------- socket options ----------////******************* **************************************** * ***************** # define lwip_socket 0/default is 1 // # define lwip_compat_sockets 1 // # define lwip_posix_sockets_io_names 1/ /# define lwip_tcp_keepalive 1 // # define lwip_so_rcvtimeo 0 // # define limit 0 // # define so_reuse 0 //*************** **************************************** ******************** // ---------- statistics options ----------////****** **************************************** ****************************** // # define lwip_stats 1 //# define lwip_stats_display 0 // # define link_stats 1 // # define etharp_stats (lwip_arp) /// # define ip_stats 1 // # define aggregate (ip_reassembly | ip_frag) // # define icmp_stats 1 // # define igmp_stats (inflow) // # define udp_stats (lwip_udp) // # define tcp_stats (lwip_tcp) /// # define mem_stats 1 // # define memp_stats 1 // # define sys_stats 1 //******************** **************************************** * *************** // ---------- PPP options ----------////*********** **************************************** * ************************ // # define ppp_support 0 // # define pppoe_support 0 // # define pppos_support ppp_support # If ppp_support // # define num_ppp 1 // # define pap_support 0 // # define chap_support 0 // # define mschap_support 0 // # define cbcp_support 0 //# define ccp_support 0 // # define vj_support 0 // # define md5_support 0 // # define fsm_deftimeout 6 // # define limit 2 // # define fsm_defmaxconfreqs 10 // # define limit 5/ // # define limit 6 // # define upap_defreqtime 30 // # define chap_deftimeout 6 // # define chap_deftransmits 10 // # define lcp_echointerval 0 // # define limit 3 // # define limit 3 // 100 // # define ppp_maxmtu 1500 // # define ppp_defmru 296 # endif //*********************** **************************************** ************* // ------------ checksum options ----------////************** **************************************** * ********************* // # define checksum_gen_ip 1 // # define checksum_gen_udp 1 // # define checksum_gen_tcp 1 // # define checksum_check_ip 1 // # define checksum_check_udp 1 // # define checksum_check_tcp 1 //******************* **************************************** * *************** // ---------- debugging options ----------////********** **************************************** * ************************** # If 0 // 1 is to open debug, 0 is disabled # define u8_f "C" # define s8_f "C" # define x8_f "X" # define u16_f "U" # define s16_f "D" # define x16_f "X "# define u32_f "U" # define s32_f "D" # define x32_f "X" extern void uartprintf (const char * pcstring ,...); # define lwip_platform_diag (x) {uartprintf X ;} # define lwip_debug # endif // # define restart // # define lwip_dbg_min_level restart // # define restart lwip_dbg_on # define lwip_dbg_types_on (lwip_dbg_on | lwip_dbg_trace | lwip_dbg_state | lwip_dbg_fresh) # define etharp_debug restart // default is off # define netif_debug restart // default is off # define pbuf_debug restart # define api_lib_debug restart # define sockets_debug restart # define icmp_debug restart # define igmp_debug restart # define inet_debug restart # define ip_debug restart // default is off # define restart # define raw_debug restart # define mem_debug restart # define memp_debug restart # define sys_debug restart # define tcp_debug restart # define tcp_input_debug variable # define tcp_fr_debug variable # define tcp_output_debug variable # define udp_debug variable // default is off # define tcpip_debug restart # define ppp_debug restart # define slip_debug restart # define dhcp_debug restart // default is off # define autoip_debug restart # define dns_debug restart # endif/ * _ lwipopts_h __*/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.