Merge branch 'feature/add_pbuf_list' into 'master'

feat(lwip): Add pbuf list to resend ERR_MEM pbuf

See merge request sdk/ESP8266_RTOS_SDK!329
This commit is contained in:
Dong Heng
2018-07-30 20:27:22 +08:00
5 changed files with 166 additions and 1 deletions

View File

@ -219,9 +219,15 @@ void *memp_malloc_ll(size_t type);
/**
* Use DRAM instead of IRAM
*/
#if CONFIG_LWIP_USE_IRAM
#define mem_clib_free free
#define mem_clib_malloc malloc
#define mem_clib_calloc calloc
#else
#define mem_clib_free os_free
#define mem_clib_malloc os_malloc
#define mem_clib_calloc os_calloc
#endif
/**
* MEMP_MEM_MALLOC==1: Use mem_malloc/mem_free instead of the lwip pool allocator.
@ -2175,6 +2181,15 @@ void *memp_malloc_ll(size_t type);
#define ESP_THREAD_SAFE_DEBUG LWIP_DBG_OFF
#endif
/**
* PBUF_CACHE_DEBUG: Enable debugging for SNTP.
*/
#if CONFIG_LWIP_PBUF_CACHE_DEBUG
#define PBUF_CACHE_DEBUG LWIP_DBG_ON
#else
#define PBUF_CACHE_DEBUG LWIP_DBG_OFF
#endif
/**
* @}
*/