|
4 | 4 | #ifndef __LWIPOPTS_H__ |
5 | 5 | #define __LWIPOPTS_H__ |
6 | 6 |
|
7 | | -/** |
8 | | - * NO_SYS==1: Provides VERY minimal functionality. Otherwise, |
9 | | - * use lwIP facilities. |
10 | | - */ |
11 | | -#define NO_SYS 0 |
12 | | - |
13 | 7 | #define LWIP_TIMEVAL_PRIVATE 0 |
14 | 8 |
|
15 | 9 | /* ---------- Thread options ---------- */ |
|
41 | 35 | */ |
42 | 36 | #define TCPIP_THREAD_PRIO DEFAULT_THREAD_PRIO |
43 | 37 |
|
44 | | -/** |
45 | | - * SLIP_THREAD_STACKSIZE: The stack size used by the slipif_loop thread. |
46 | | - * The stack size value itself is platform-dependent, but is passed to |
47 | | - * sys_thread_new() when the thread is created. |
48 | | - */ |
49 | | -#define SLIPIF_THREAD_STACKSIZE DEFAULT_THREAD_STACKSIZE |
50 | | - |
51 | | -/** |
52 | | - * SLIPIF_THREAD_PRIO: The priority assigned to the slipif_loop thread. |
53 | | - * The priority value itself is platform-dependent, but is passed to |
54 | | - * sys_thread_new() when the thread is created. |
55 | | - */ |
56 | | -#define SLIPIF_THREAD_PRIO DEFAULT_THREAD_PRIO |
57 | | - |
58 | | -/** |
59 | | - * PPP_THREAD_STACKSIZE: The stack size used by the pppInputThread. |
60 | | - * The stack size value itself is platform-dependent, but is passed to |
61 | | - * sys_thread_new() when the thread is created. |
62 | | - */ |
63 | | -#define PPP_THREAD_STACKSIZE DEFAULT_THREAD_STACKSIZE |
64 | | - |
65 | | -/** |
66 | | - * PPP_THREAD_PRIO: The priority assigned to the pppInputThread. |
67 | | - * The priority value itself is platform-dependent, but is passed to |
68 | | - * sys_thread_new() when the thread is created. |
69 | | - */ |
70 | | -#define PPP_THREAD_PRIO DEFAULT_THREAD_PRIO |
71 | | - |
72 | 38 | /* |
73 | 39 | ------------------------------------ |
74 | 40 | ---------- Memory options ---------- |
75 | 41 | ------------------------------------ |
76 | 42 | */ |
77 | | -/** |
78 | | - * MEM_LIBC_MALLOC==1: Use malloc/free/realloc provided by your C-library |
79 | | - * instead of the lwip internal allocator. Can save code size if you |
80 | | - * already use it. |
81 | | - */ |
82 | | -#define MEM_LIBC_MALLOC 0 //FJTRUJY disable it for IOP |
83 | | - |
84 | 43 | /* MEM_ALIGNMENT: should be set to the alignment of the CPU for which |
85 | 44 | lwIP is compiled. 4 byte alignment -> define MEM_ALIGNMENT to 4, 2 |
86 | 45 | byte alignment -> define MEM_ALIGNMENT to 2. */ |
|
131 | 90 | /** |
132 | 91 | * MEMP_NUM_TCPIP_MSG_INPKT: the number of struct tcpip_msg, which are used |
133 | 92 | * for incoming packets. |
134 | | - * (only needed if you use tcpip.c) |
135 | | - */ |
136 | | -//SP193: this should be around the size of the TCP window because the TCPIP thread may take a while to execute (non-preemptive multitasking), otherwise incoming frames may get dropped. |
137 | | -#ifndef LWIP_TCPIP_CORE_LOCKING_INPUT |
138 | | -#define MEMP_NUM_TCPIP_MSG_INPKT 24 |
139 | | -#endif |
140 | | - |
141 | | -/** |
142 | | - * MEMP_NUM_TCPIP_MSG_API: the number of struct tcpip_msg, which are used |
143 | | - * for callback/timeout API communication. |
144 | | - * (only needed if you use tcpip.c) |
| 93 | + * SP193: this should be around the size of the TCP window because the |
| 94 | + * TCPIP thread may take a while to execute (non-preemptive multitasking), |
| 95 | + * otherwise incoming frames may get dropped. |
145 | 96 | */ |
146 | | -//SP193: this should be around the size of MEM_SIZE (in PBUFs), to prevent transmissions from being potentially being dropped. |
147 | | -#define MEMP_NUM_TCPIP_MSG_API 8 |
| 97 | +#define MEMP_NUM_TCPIP_MSG_INPKT 24 |
148 | 98 |
|
149 | 99 | /** |
150 | 100 | * MEMP_NUM_NETCONN: the number of struct netconns. |
|
167 | 117 | */ |
168 | 118 | #define LWIP_TCPIP_CORE_LOCKING_INPUT 1 |
169 | 119 |
|
170 | | -/** SYS_LIGHTWEIGHT_PROT |
171 | | - * define SYS_LIGHTWEIGHT_PROT in lwipopts.h if you want inter-task protection |
172 | | - * for certain critical regions during buffer allocation, deallocation and |
173 | | - * memory allocation and deallocation. |
174 | | - */ |
175 | | -#define SYS_LIGHTWEIGHT_PROT 1 |
176 | | - |
177 | 120 | /* |
178 | 121 | --------------------------------- |
179 | 122 | ---------- TCP options ---------- |
|
0 commit comments