lwip-users
[Top][All Lists]
Advanced

[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")





reply via email to

[Prev in Thread] Current Thread [Next in Thread]