|
@@ -230,14 +230,21 @@
|
|
|
#define LWIP_DBG_TYPES_ON (LWIP_DBG_ON|LWIP_DBG_TRACE|LWIP_DBG_STATE|LWIP_DBG_FRESH|LWIP_DBG_HALT)
|
|
|
|
|
|
/* ---------- Memory options ---------- */
|
|
|
+#ifdef RT_USING_ASM_MEMCPY
|
|
|
+#define MEMCPY(dst,src,len) rt_memcpy(dst,src,len)
|
|
|
+#else
|
|
|
+#define MEMCPY(dst,src,len) memcpy(dst,src,len)
|
|
|
+#endif /* RT_USING_ASM_MEMCPY */
|
|
|
+#define SMEMCPY(dst,src,len) MEMCPY(dst,src,len)
|
|
|
+
|
|
|
#ifdef RT_LWIP_MEM_ALIGNMENT
|
|
|
#define MEM_ALIGNMENT RT_LWIP_MEM_ALIGNMENT
|
|
|
#else
|
|
|
#define MEM_ALIGNMENT 4
|
|
|
#endif
|
|
|
|
|
|
-#define MEMP_OVERFLOW_CHECK 1 ////
|
|
|
-#define LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT 1 ////
|
|
|
+#define MEMP_OVERFLOW_CHECK 1
|
|
|
+#define LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT 1
|
|
|
//#define MEM_LIBC_MALLOC 1
|
|
|
//#define MEM_USE_POOLS 1
|
|
|
//#define MEMP_USE_CUSTOM_POOLS 1
|