Fix documentation on relocating memory pools

This commit is contained in:
Dirk Ziegelmeier 2017-10-15 22:37:41 +02:00
parent 5d8d21fcae
commit ada6a84785

View File

@ -90,7 +90,7 @@ extern const struct memp_desc* const memp_pools[MEMP_MAX];
* - free: LWIP_MEMPOOL_FREE(my_private_pool, my_new_mem);
*
* 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) \
LWIP_DECLARE_MEMORY_ALIGNED(memp_memory_ ## name ## _base, ((num) * (MEMP_SIZE + MEMP_ALIGN_SIZE(size)))); \