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

Fix malloc/free references

This commit is contained in:
Ivan Grokhotkov
2014-12-01 00:34:28 +03:00
parent f5f851c978
commit 22b88f73c2
7 changed files with 37 additions and 10 deletions

1
hardware/tools/esp8266/sdk/include/ets_sys.h Executable file → Normal file
View File

@ -83,6 +83,7 @@ typedef struct _ETSTIMER_ {
void ets_isr_attach(int routine, void* something, void *buff);
void *pvPortMalloc(size_t xWantedSize);
void *pvPortRealloc(void* ptr, size_t xWantedSize);
void pvPortFree(void *ptr);
void *vPortMalloc(size_t xWantedSize);
void vPortFree(void *ptr);

1
hardware/tools/esp8266/sdk/include/mem.h Executable file → Normal file
View File

@ -8,5 +8,6 @@
#define os_malloc pvPortMalloc
#define os_free vPortFree
#define os_zalloc pvPortZalloc
#define os_realloc pvPortRealloc
#endif