lwIP pool location
Hi,
Does any one how to make pbuf’s be in a certain memory range?
For example when I call pbuf_alloc(PBUF_RAW, PBUF_POOL_BUFSIZE, PBUF_POOL) it will allocate a pbuf from a pool that is contained in this array memp_memory, is there a better way/proper way to do this no how I did.
memp.c:
....
/** This is the actual memory used by the pools (all pools in one big block). */
static u8_t memp_memory[MEM_ALIGNMENT - 1
#define LWIP_MEMPOOL(name,num,size,desc) + ( (num) * (MEMP_SIZE + MEMP_ALIGN_SIZE(size) ) )
#include "lwip/memp_std.h"
] __attribute__((section(".my_mem")));
....
I just added __attribute__((section(".my_mem"))), in my linker scrip I have that section tied to an absolute address.
And I'm using lwIP 1.4.0.
Best regards,
Alex
