1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-29 16:03:14 +03:00

lwip2: use pvPortXalloc/vPortFree and "-free -fipa-pta" (#7793)

lwip2: use pvPortXalloc/vPortFree instead of malloc/free and add gcc's '-free -fipa-pta' options
This commit is contained in:
david gauchard
2020-12-24 19:56:21 +01:00
committed by GitHub
parent 5356c87b5b
commit 5c29517d11
9 changed files with 12 additions and 2 deletions

View File

@ -3676,6 +3676,16 @@ void tcp_kill_timewait (void);
#define MEMP_NUM_TCP_PCB_TIME_WAIT 5
#endif
/*
--------------------------------------------------
----------------- Alloc functions ----------------
--------------------------------------------------
*/
#define mem_clib_free(p) vPortFree(p, NULL, -1)
#define mem_clib_malloc(s) pvPortMalloc(s, NULL, -1)
#define mem_clib_calloc(n,s) pvPortZalloc(n*s, NULL, -1)
#ifdef __cplusplus
} // extern "C"
#endif