-->
Page 1 of 1

Cannot find vPortFree and vPortZalloc

PostPosted: Sat Mar 19, 2016 10:22 am
by apicquot
Hello,

I am trying to port some code from the esp8266 SDK to an Arduino library:http://www.esp8266.com/posting.php?mode=reply&f=6&t=6173

There are specially 2 functions referenced in <mem.h> that I can not link to my library
Code: Select allvoid *pvPortZalloc(size_t, const char *file, int line);
void vPortFree(void *ptr, const char *file, int line);



Any ideal where there are implemented or how to use them in the Arduino framework ?


Thank you for any help.

Re: Cannot find vPortFree and vPortZalloc

PostPosted: Mon Mar 21, 2016 9:27 am
by apicquot
I found the answer in the example showing how to call SDK functions in Arduino:

Code: Select allextern "C"{

#include <[i]library from the stk[/i]>

};


Hope it can help.