• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* OPTIONAL: Pools to replace heap allocation
2  * Optional: Pools can be used instead of the heap for mem_malloc. If
3  * so, these should be defined here, in increasing order according to
4  * the pool element size.
5  *
6  * LWIP_MALLOC_MEMPOOL(number_elements, element_size)
7  */
8 #if MEM_USE_POOLS
9 LWIP_MALLOC_MEMPOOL_START
10 LWIP_MALLOC_MEMPOOL(100, 256)
11 LWIP_MALLOC_MEMPOOL(50, 512)
12 LWIP_MALLOC_MEMPOOL(20, 1024)
13 LWIP_MALLOC_MEMPOOL(20, 1536)
14 LWIP_MALLOC_MEMPOOL_END
15 #endif /* MEM_USE_POOLS */
16 
17 /* Optional: Your custom pools can go here if you would like to use
18  * lwIP's memory pools for anything else.
19  */
20 LWIP_MEMPOOL(SYS_MBOX, 22, 100, "SYS_MBOX")
21