Import lwIP contrib rep
... from http://git.savannah.gnu.org/cgit/lwip/lwip-contrib.git/ into contrib/ subdir, STABLE-2_1_0_RELEASE tag lwIP contrib is now officially frozen TODO: Fix build
This commit is contained in:
20
contrib/examples/example_app/lwippools.h
Normal file
20
contrib/examples/example_app/lwippools.h
Normal file
@@ -0,0 +1,20 @@
|
||||
/* 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")
|
||||
Reference in New Issue
Block a user