[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] where is lwippools.h file
From: |
address@hidden |
Subject: |
Re: [lwip-users] where is lwippools.h file |
Date: |
Tue, 23 Feb 2010 18:14:26 +0100 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1 |
Bill Yang wrote:
Hi,
After I enabled the MEM_USE_POOLS and MEMP_USE_CUSTOM_POOLS, so I can use the memory
pools. However, when I compiled the lwIP stack used in a demo of freertos, I got a
compiling error said that "lwippools.h": No such file or directory as below
message.
..\Common\ethernet\lwip-1.3.0\src\include\lwip/memp_std.h(90): error: #5: cannot open
source input file "lwippools.h": No such file or directory
I wonder if any one have a sample of lwippools.h, please briefly post here. So
I can refer it and create one in my project.
For such things, there are the example ports for win32 and unix in the
contrib module in CVS. Here's the lwippools.h file of the win32 port:
/* OPTIONAL: Pools to replace heap allocation
* Optional: Pools can be used instead of the heap for mem_malloc. If
* so, these should be defined here, in increasing order according to
* the pool element size.
*
* LWIP_MALLOC_MEMPOOL(number_elements, element_size)
*/
#if MEM_USE_POOLS
LWIP_MALLOC_MEMPOOL_START
LWIP_MALLOC_MEMPOOL(100, 256)
LWIP_MALLOC_MEMPOOL(50, 512)
LWIP_MALLOC_MEMPOOL(20, 1024)
LWIP_MALLOC_MEMPOOL(20, 1536)
LWIP_MALLOC_MEMPOOL_END
#endif /* MEM_USE_POOLS */
/* Optional: Your custom pools can go here if you would like to use
* lwIP's memory pools for anything else.
*/
LWIP_MEMPOOL(SYS_MBOX, 22, 100, "SYS_MBOX")
- [lwip-users] Recommendations needed for API design, Marcus Bäckman, 2010/02/19
- Re: [lwip-users] Recommendations needed for API design, Kieran Mansley, 2010/02/19
- [lwip-users] Initialization of global Vars, Christian Steffen, 2010/02/22
- Re: [lwip-users] Initialization of global Vars, address@hidden, 2010/02/22
- Re: [lwip-users] Initialization of global Vars, Christian Steffen, 2010/02/23
- RE: [lwip-users] where is lwippools.h file, Bill Yang, 2010/02/23
- Re: [lwip-users] where is lwippools.h file,
address@hidden <=
- RE: [lwip-users] Compile Error related to lwippools.h file, Bill Yang, 2010/02/24
- Re: [lwip-users] Compile Error related to lwippools.h file, address@hidden, 2010/02/25
- RE: [lwip-users] Compile Error related to lwippools.h file, Bill Yang, 2010/02/25
RE: [lwip-users] Recommendations needed for API design, Bill Auerbach, 2010/02/19