forked from wolfSSL/wolfssl
Github Issue #130 (XMALLOC_USER, NO_WOLFSSL_MEMORY) with FREERTOS
This commit is contained in:
@ -381,9 +381,13 @@ static char *fgets(char *buff, int sz, FILE *fp)
|
|||||||
|
|
||||||
#ifdef FREERTOS
|
#ifdef FREERTOS
|
||||||
#include "FreeRTOS.h"
|
#include "FreeRTOS.h"
|
||||||
|
|
||||||
/* FreeRTOS pvPortRealloc() only in AVR32_UC3 port */
|
/* FreeRTOS pvPortRealloc() only in AVR32_UC3 port */
|
||||||
#define XMALLOC(s, h, type) pvPortMalloc((s))
|
#if !defined(XMALLOC_USER) && !defined(NO_WOLFSSL_MEMORY)
|
||||||
#define XFREE(p, h, type) vPortFree((p))
|
#define XMALLOC(s, h, type) pvPortMalloc((s))
|
||||||
|
#define XFREE(p, h, type) vPortFree((p))
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef NO_WRITEV
|
#ifndef NO_WRITEV
|
||||||
#define NO_WRITEV
|
#define NO_WRITEV
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user