mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 03:16:18 +00:00
Fix documentation on relocating memory pools
This commit is contained in:
parent
5d8d21fcae
commit
ada6a84785
@ -90,7 +90,7 @@ extern const struct memp_desc* const memp_pools[MEMP_MAX];
|
|||||||
* - free: LWIP_MEMPOOL_FREE(my_private_pool, my_new_mem);
|
* - free: LWIP_MEMPOOL_FREE(my_private_pool, my_new_mem);
|
||||||
*
|
*
|
||||||
* To relocate a pool, declare it as extern in cc.h. Example for GCC:
|
* To relocate a pool, declare it as extern in cc.h. Example for GCC:
|
||||||
* extern u8_t \_\_attribute\_\_((section(".onchip_mem"))) memp_memory_my_private_pool[];
|
* extern u8_t \_\_attribute\_\_((section(".onchip_mem"))) memp_memory_my_private_pool_base[];
|
||||||
*/
|
*/
|
||||||
#define LWIP_MEMPOOL_DECLARE(name,num,size,desc) \
|
#define LWIP_MEMPOOL_DECLARE(name,num,size,desc) \
|
||||||
LWIP_DECLARE_MEMORY_ALIGNED(memp_memory_ ## name ## _base, ((num) * (MEMP_SIZE + MEMP_ALIGN_SIZE(size)))); \
|
LWIP_DECLARE_MEMORY_ALIGNED(memp_memory_ ## name ## _base, ((num) * (MEMP_SIZE + MEMP_ALIGN_SIZE(size)))); \
|
||||||
|
Loading…
Reference in New Issue
Block a user