A version of LWIP, provided for backwards compatibility.

Dependents:   AA_DemoBoard DemoBoard HelloServerDemo DemoBoard_RangeIndicator ... more

Committer:
root@mbed.org
Date:
Tue May 08 15:32:10 2012 +0100
Revision:
0:5e1631496985
initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
root@mbed.org 0:5e1631496985 1 #ifndef LWIPOPTS_H
root@mbed.org 0:5e1631496985 2 #define LWIPOPTS_H
root@mbed.org 0:5e1631496985 3
root@mbed.org 0:5e1631496985 4 #include <string.h>
root@mbed.org 0:5e1631496985 5 #include <stdlib.h>
root@mbed.org 0:5e1631496985 6 //#include <mbed.h>
root@mbed.org 0:5e1631496985 7 #include <stdio.h>
root@mbed.org 0:5e1631496985 8
root@mbed.org 0:5e1631496985 9 #ifdef __cplusplus
root@mbed.org 0:5e1631496985 10 using namespace std;
root@mbed.org 0:5e1631496985 11 #endif
root@mbed.org 0:5e1631496985 12
root@mbed.org 0:5e1631496985 13 // Application specific lwIP Options.
root@mbed.org 0:5e1631496985 14 #define IPv6 0
root@mbed.org 0:5e1631496985 15 #define NO_SYS 1
root@mbed.org 0:5e1631496985 16 #define LWIP_ARP 1
root@mbed.org 0:5e1631496985 17 #define LWIP_RAW 0
root@mbed.org 0:5e1631496985 18 #define LWIP_UDP 1
root@mbed.org 0:5e1631496985 19 #define LWIP_TCP 1
root@mbed.org 0:5e1631496985 20 #define LWIP_DNS 1
root@mbed.org 0:5e1631496985 21 #define LWIP_DHCP 1
root@mbed.org 0:5e1631496985 22 #define LWIP_IGMP 0
root@mbed.org 0:5e1631496985 23 #define LWIP_SNMP 0
root@mbed.org 0:5e1631496985 24 #define LWIP_SOCKET 0
root@mbed.org 0:5e1631496985 25 #define LWIP_NETCONN 0
root@mbed.org 0:5e1631496985 26 #define LWIP_AUTOIP 0
root@mbed.org 0:5e1631496985 27 #define LWIP_CALLBACK_API 1
root@mbed.org 0:5e1631496985 28
root@mbed.org 0:5e1631496985 29 #define MEM_LIBC_MALLOC 0
root@mbed.org 0:5e1631496985 30 #define MEMP_MEM_MALLOC 1
root@mbed.org 0:5e1631496985 31 #define MEM_ALIGNMENT 4
root@mbed.org 0:5e1631496985 32 //#define MEM_SIZE 5000
root@mbed.org 0:5e1631496985 33 #define MEM_SIZE 10000
root@mbed.org 0:5e1631496985 34 //#define MEM_SIZE (EMAC_MEM_SIZE - (2 * SIZEOF_STRUCT_MEM) - MEM_ALIGNMENT)
root@mbed.org 0:5e1631496985 35 #define MEM_POSITION __attribute((section("AHBSRAM1"),aligned))
root@mbed.org 0:5e1631496985 36 // EMAC_MEM_ADDR
root@mbed.org 0:5e1631496985 37
root@mbed.org 0:5e1631496985 38 #define ARP_QUEUEING 0
root@mbed.org 0:5e1631496985 39 #define LWIP_NETIF_HOSTNAME 1
root@mbed.org 0:5e1631496985 40
root@mbed.org 0:5e1631496985 41 #define ARP_TABLE_SIZE 4
root@mbed.org 0:5e1631496985 42
root@mbed.org 0:5e1631496985 43 #define DNS_TABLE_SIZE 1
root@mbed.org 0:5e1631496985 44 #define DNS_USES_STATIC_BUF 0
root@mbed.org 0:5e1631496985 45 // 0 - Stack
root@mbed.org 0:5e1631496985 46 // 1 - RW-MEM
root@mbed.org 0:5e1631496985 47 // 2 - Heap
root@mbed.org 0:5e1631496985 48
root@mbed.org 0:5e1631496985 49 #define IP_FRAG_USES_STATIC_BUF 0
root@mbed.org 0:5e1631496985 50 #define LWIP_STATS 0
root@mbed.org 0:5e1631496985 51
root@mbed.org 0:5e1631496985 52 #define DNS_LOCAL_HOSTLIST_IS_DYNAMIC 1
root@mbed.org 0:5e1631496985 53
root@mbed.org 0:5e1631496985 54 #define TCP_SND_BUF 2000
root@mbed.org 0:5e1631496985 55 #define TCP_MSS 0x276
root@mbed.org 0:5e1631496985 56 //0x300
root@mbed.org 0:5e1631496985 57 //#define TCP_SND_QUEUELEN (2 * TCP_SND_BUF/TCP_MSS)
root@mbed.org 0:5e1631496985 58 #define TCP_SND_QUEUELEN 16
root@mbed.org 0:5e1631496985 59 #define MEMP_NUM_TCP_PCB 5
root@mbed.org 0:5e1631496985 60 #define MEMP_NUM_TCP_PCB_LISTEN 8
root@mbed.org 0:5e1631496985 61 #define MEMP_NUM_TCP_SEG 20
root@mbed.org 0:5e1631496985 62 #define MEMP_NUM_PBUF 16
root@mbed.org 0:5e1631496985 63 #define PBUF_POOL_SIZE 6
root@mbed.org 0:5e1631496985 64
root@mbed.org 0:5e1631496985 65 #ifndef HOSTNAME
root@mbed.org 0:5e1631496985 66 #define HOSTNAME "mbed-c3p0"
root@mbed.org 0:5e1631496985 67 #endif
root@mbed.org 0:5e1631496985 68
root@mbed.org 0:5e1631496985 69 //#define LWIP_DEBUG 1
root@mbed.org 0:5e1631496985 70 //#define LWIP_DBG_TYPES_ON ~0x0
root@mbed.org 0:5e1631496985 71 //#define LWIP_DBG_MIN_LEVEL 0
root@mbed.org 0:5e1631496985 72 //#define MEM_DEBUG (LWIP_DBG_ON | LWIP_DBG_LEVEL_WARNING)
root@mbed.org 0:5e1631496985 73 //#define TCP_INPUT_DEBUG (LWIP_DBG_ON | LWIP_DBG_LEVEL_WARNING)
root@mbed.org 0:5e1631496985 74 //#define TCP_OUTPUT_DEBUG (LWIP_DBG_ON | LWIP_DBG_LEVEL_WARNING)
root@mbed.org 0:5e1631496985 75 //#define NETIF_DEBUG (LWIP_DBG_ON | LWIP_DBG_LEVEL_WARNING)
root@mbed.org 0:5e1631496985 76 //#define DHCP_DEBUG (LWIP_DBG_ON | LWIP_DBG_LEVEL_WARNING)
root@mbed.org 0:5e1631496985 77 //#define IP_DEBUG (LWIP_DBG_ON | LWIP_DBG_LEVEL_WARNING)
root@mbed.org 0:5e1631496985 78 //#define TCP_DEBUG (LWIP_DBG_ON | LWIP_DBG_LEVEL_WARNING)
root@mbed.org 0:5e1631496985 79 //#define TCP_CWND_DEBUG (LWIP_DBG_ON | LWIP_DBG_LEVEL_WARNING)
root@mbed.org 0:5e1631496985 80
root@mbed.org 0:5e1631496985 81 #endif