Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame^] | 1 | #ifndef __LWIPOPTS_H |
| 2 | #define __LWIPOPTS_H |
| 3 | |
| 4 | #include <kernel/thread.h> |
| 5 | |
| 6 | #define LWIP_DHCP 1 |
| 7 | |
| 8 | #define MEM_ALIGNMENT 4 |
| 9 | |
| 10 | #define LWIP_PROVIDE_ERRNO 1 |
| 11 | |
| 12 | /* heap */ |
| 13 | #define MEM_SIZE 8192 |
| 14 | #define MEMP_NUM_PBUF 64 |
| 15 | |
| 16 | /* dhcp uses 2 extra ones that push the default 3 over the limit */ |
| 17 | #define MEMP_NUM_SYS_TIMEOUT 5 |
| 18 | |
| 19 | /* some tcp tweakage */ |
| 20 | #define TCP_MSS 1024 |
| 21 | #define TCP_SND_BUF 2048 |
| 22 | |
| 23 | /* tcp worker thread priorities */ |
| 24 | #define DEFAULT_THREAD_PRIO DEFAULT_PRIORITY |
| 25 | #define TCPIP_THREAD_PRIO DEFAULT_PRIORITY |
| 26 | |
| 27 | #endif |
| 28 | |