| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- /**
- * \file lwipopts.h
- *
- * \brief Configuration options for lwIP
- */
- /* Copyright (c) 2010 Texas Instruments Incorporated
- * All rights reserved. */
- /*
- * Copyright (c) 2001-2004 Swedish Institute of Computer Science.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without modification,
- * are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- * 3. The name of the author may not be used to endorse or promote products
- * derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
- * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
- * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
- * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
- * OF SUCH DAMAGE.
- *
- * This file is part of the lwIP TCP/IP stack.
- *
- * Author: Adam Dunkels <adam@sics.se>
- *
- */
- #ifndef __LWIPOPTS_H__
- #define __LWIPOPTS_H__
- /*****************************************************************************
- ** CONFIGURATIONS
- *****************************************************************************/
- /*
- ** Give the MAC Address on the EVM here.
- */
- #define MAC_ADDRESS {0x00, 0x08, 0xEE, 0x03, 0x6A, 0xC6}
- /*
- ** If Static IP address to be used, give it here. This value shall be 0 if
- ** dynamic IP address is to be used.
- ** For Example, for IP Address 192.168.1.200, use the corresponding hex
- ** value 0xC0A801C8.
- */
- //#define STATIC_IP_ADDRESS 0xC0A801C8 //192.168.1.200
- /*****************************************************************************
- ** lwIP SPECIFIC DEFINITIONS - To be used by lwIP stack
- *****************************************************************************/
- #define HOST_TMR_INTERVAL 0
- #define DYNAMIC_HTTP_HEADERS
- /*****************************************************************************
- ** Platform specific locking
- *****************************************************************************/
- #define SYS_LIGHTWEIGHT_PROT 1
- #define NO_SYS 1
- /*****************************************************************************
- ** Memory Options
- *****************************************************************************/
- #define MEM_ALIGNMENT 4
- #define MEM_SIZE (50 * 1024) /* 50K */
- /*****************************************************************************
- ** Memory Options
- *****************************************************************************/
- #define MEMP_NUM_PBUF 48
- #define MEMP_NUM_TCP_PCB 16
- #define PBUF_POOL_SIZE 96
- /*****************************************************************************
- ** Memory Options
- *****************************************************************************/
- #define IP_REASSEMBLY 1
- #define IP_FRAG 1
- /*****************************************************************************
- ** DHCP Options
- *****************************************************************************/
- #define LWIP_DHCP 1
- #define DHCP_DOES_ARP_CHECK 0
- /*****************************************************************************
- ** Auto IP Options
- *****************************************************************************/
- #define LWIP_AUTOIP 0 /* 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 */
- /*****************************************************************************
- ** TCP Options
- *****************************************************************************/
- #define TCP_MSS 1500 /* default is 128 */
- #define TCP_WND 4 * TCP_MSS /* default is 2048 */
- #define TCP_SND_BUF (4 * TCP_MSS)
- /*****************************************************************************
- ** PBUF Options
- *****************************************************************************/
- #define PBUF_LINK_HLEN 14 /* default is 14 */
- #define PBUF_POOL_BUFSIZE 256
- /* default is LWIP_MEM_ALIGN_SIZE(TCP_MSS+40+PBUF_LINK_HLEN)*/
- #define ETH_PAD_SIZE 0
- #define LWIP_NETCONN 0 /*default is 1*/
- /*****************************************************************************
- ** Socket Options
- *****************************************************************************/
- #define LWIP_SOCKET 0 /* default is 1 */
- /*****************************************************************************
- ** Debugging options
- *****************************************************************************/
- #define LWIP_DBG_MIN_LEVEL LWIP_DBG_LEVEL_ON
- #define LWIP_DBG_TYPES_ON (LWIP_DBG_ON|LWIP_DBG_TRACE|LWIP_DBG_STATE|LWIP_DBG_FRESH)
- #endif /* __LWIPOPTS_H__ */
|