mirror of https://github.com/ARMmbed/mbed-os.git
lwip: Annotate with memory used by config parameters
parent
b7a48b1220
commit
55485ae61e
|
@ -106,24 +106,35 @@
|
||||||
#define LWIP_RAM_HEAP_POINTER lwip_ram_heap
|
#define LWIP_RAM_HEAP_POINTER lwip_ram_heap
|
||||||
|
|
||||||
#ifndef PBUF_POOL_SIZE
|
#ifndef PBUF_POOL_SIZE
|
||||||
|
/// Each requires 684 bytes of RAM.
|
||||||
#define PBUF_POOL_SIZE 5
|
#define PBUF_POOL_SIZE 5
|
||||||
#endif
|
#endif
|
||||||
#ifndef MEMP_NUM_TCP_PCB_LISTEN
|
#ifndef MEMP_NUM_TCP_PCB_LISTEN
|
||||||
|
/// One is needed for each TCPServer.
|
||||||
|
/// Each requires 72 bytes of RAM.
|
||||||
#define MEMP_NUM_TCP_PCB_LISTEN 4
|
#define MEMP_NUM_TCP_PCB_LISTEN 4
|
||||||
#endif
|
#endif
|
||||||
#ifndef MEMP_NUM_TCP_PCB
|
#ifndef MEMP_NUM_TCP_PCB
|
||||||
|
/// One is needed for each TCPSocket.
|
||||||
|
/// Each requires 196 bytes of RAM.
|
||||||
#define MEMP_NUM_TCP_PCB 4
|
#define MEMP_NUM_TCP_PCB 4
|
||||||
#endif
|
#endif
|
||||||
#ifndef MEMP_NUM_UDP_PCB
|
#ifndef MEMP_NUM_UDP_PCB
|
||||||
|
/// One is needed for each UDPSocket.
|
||||||
|
/// Each requires 84 bytes of RAM (rounded to multiple of 512).
|
||||||
#define MEMP_NUM_UDP_PCB 4
|
#define MEMP_NUM_UDP_PCB 4
|
||||||
#endif
|
#endif
|
||||||
#ifndef MEMP_NUM_PBUF
|
#ifndef MEMP_NUM_PBUF
|
||||||
|
/// Each requires 92 bytes of RAM.
|
||||||
#define MEMP_NUM_PBUF 8
|
#define MEMP_NUM_PBUF 8
|
||||||
#endif
|
#endif
|
||||||
#ifndef MEMP_NUM_NETBUF
|
#ifndef MEMP_NUM_NETBUF
|
||||||
|
/// Each requires 64 bytes of RAM.
|
||||||
#define MEMP_NUM_NETBUF 8
|
#define MEMP_NUM_NETBUF 8
|
||||||
#endif
|
#endif
|
||||||
#ifndef MEMP_NUM_NETCONN
|
#ifndef MEMP_NUM_NETCONN
|
||||||
|
/// One netconn is needed for each UDPSocket, TCPSocket or TCPServer.
|
||||||
|
/// Each requires 236 bytes of RAM (rounded to multiple of 512).
|
||||||
#define MEMP_NUM_NETCONN 4
|
#define MEMP_NUM_NETCONN 4
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue