|
发表于 2019-12-11 12:19:24
|
显示全部楼层
- /*
- ------------------------------------
- ---------- Memory options ----------
- ------------------------------------
- */
- #define MEM_LIBC_MALLOC 0
- #define MEMP_MEM_MALLOC 1
- #define MEMP_MEM_INIT 0
- #define MEM_ALIGNMENT 4
- #define MEM_SIZE (36*1024)
- #define MEMP_OVERFLOW_CHECK 0
- #define MEMP_SANITY_CHECK 0
- #define MEM_OVERFLOW_CHECK 0
- #define MEM_SANITY_CHECK 0
复制代码- /** If you want to relocate the heap to external memory, simply define
- * LWIP_RAM_HEAP_POINTER as a void-pointer to that location.
- * If so, make sure the memory at that location is big enough (see below on
- * how that space is calculated). */
- #ifndef LWIP_RAM_HEAP_POINTER
- /** the heap. we need one struct mem at the end and some room for alignment */
- LWIP_DECLARE_MEMORY_ALIGNED(ram_heap, MEM_SIZE_ALIGNED + (2U * SIZEOF_STRUCT_MEM));
- #define LWIP_RAM_HEAP_POINTER ram_heap
- #endif /* LWIP_RAM_HEAP_POINTER */
复制代码 模板工程里面没有,不过看他的注释,是说明了如何指定的。谢谢硬汉和前面仁兄的帮助,谢谢!!!
|
|