BOOT_GONEC_ARTERY_HttpServer/Inc/lwippools.h

42 lines
1.1 KiB
C

//
// Created by cfif on 04.07.23.
//
/* 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(10, 256)
//LWIP_MALLOC_MEMPOOL(50, 512)
//LWIP_MALLOC_MEMPOOL(20, 1024)
//LWIP_MALLOC_MEMPOOL(20, 1536)
//LWIP_MALLOC_MEMPOOL(30, 8)
//LWIP_MALLOC_MEMPOOL(30, 16)
//LWIP_MALLOC_MEMPOOL(30, 32)
//LWIP_MALLOC_MEMPOOL(30, 64)
LWIP_MALLOC_MEMPOOL(30, 128)
//LWIP_MALLOC_MEMPOOL(30, 256)
//LWIP_MALLOC_MEMPOOL(10, 512)
//LWIP_MALLOC_MEMPOOL(10, 1024)
LWIP_MALLOC_MEMPOOL(24, 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(TCP_PCB, 12, sizeof(struct tcp_pcb), "TCP_PCB")
//LWIP_MEMPOOL(SYS_MBOX, 22, sizeof(struct sys_mbox_struct), "SYS_MBOX")
//LWIP_MEMPOOL(SYS_SEM, 12, sizeof(struct sys_sem_struct), "SYS_SEM")