|
From: | D.C. van Moolenbroek |
Subject: | Re: [lwip-users] [raw] configure lwip tcp tx pbuf |
Date: | Tue, 28 Feb 2017 22:50:35 +0100 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 |
On 2/28/2017 19:07, François Thierry wrote:
- #define PBUF_POOL_SIZE 256 - #define PBUF_POOL_BUFSIZE 1700
[..]
- The following line indicates me that the pbuf will be placed in RAMtcp_pbuf_prealloc(layer, length, mx, os, pcb, api, fst) pbuf_alloc((layer), (length), PBUF_RAM)
Just to add to Simon's post: please be aware that PBUF_RAM allocations never draw from the PBUF POOL that you've defined above. If you want that to happen, define a custom pool instead, and (if relevant) avoid PBUF_POOL allocations in your own code. Otherwise you'll need a heap (ie MEM_SIZE).
As far as I can tell, although I'd love to be corrected, there is no way to have a statically sized pool that is used for both PBUF_RAM and PBUF_POOL allocations.
David
[Prev in Thread] | Current Thread | [Next in Thread] |