forked from wolfSSL/wolfssl
Fix to allow FREERTOS
and WOLFSSL_STATIC_MEMORY
.
This commit is contained in:
@ -543,7 +543,8 @@ extern void uITRON4_free(void *p) ;
|
||||
#include "FreeRTOS.h"
|
||||
|
||||
/* FreeRTOS pvPortRealloc() only in AVR32_UC3 port */
|
||||
#if !defined(XMALLOC_USER) && !defined(NO_WOLFSSL_MEMORY)
|
||||
#if !defined(XMALLOC_USER) && !defined(NO_WOLFSSL_MEMORY) && \
|
||||
!defined(WOLFSSL_STATIC_MEMORY)
|
||||
#define XMALLOC(s, h, type) pvPortMalloc((s))
|
||||
#define XFREE(p, h, type) vPortFree((p))
|
||||
#endif
|
||||
@ -574,20 +575,19 @@ extern void uITRON4_free(void *p) ;
|
||||
#endif
|
||||
|
||||
#ifdef FREERTOS_TCP
|
||||
#if !defined(NO_WOLFSSL_MEMORY) && !defined(XMALLOC_USER) && \
|
||||
!defined(WOLFSSL_STATIC_MEMORY)
|
||||
#define XMALLOC(s, h, type) pvPortMalloc((s))
|
||||
#define XFREE(p, h, type) vPortFree((p))
|
||||
#endif
|
||||
|
||||
#if !defined(NO_WOLFSSL_MEMORY) && !defined(XMALLOC_USER)
|
||||
#define XMALLOC(s, h, type) pvPortMalloc((s))
|
||||
#define XFREE(p, h, type) vPortFree((p))
|
||||
#endif
|
||||
|
||||
#define WOLFSSL_GENSEED_FORTEST
|
||||
|
||||
#define NO_WOLFSSL_DIR
|
||||
#define NO_WRITEV
|
||||
#define USE_FAST_MATH
|
||||
#define TFM_TIMING_RESISTANT
|
||||
#define NO_MAIN_DRIVER
|
||||
#define WOLFSSL_GENSEED_FORTEST
|
||||
|
||||
#define NO_WOLFSSL_DIR
|
||||
#define NO_WRITEV
|
||||
#define USE_FAST_MATH
|
||||
#define TFM_TIMING_RESISTANT
|
||||
#define NO_MAIN_DRIVER
|
||||
#endif
|
||||
|
||||
#ifdef WOLFSSL_TIRTOS
|
||||
|
@ -233,8 +233,7 @@
|
||||
#elif !defined(MICRIUM_MALLOC) && !defined(EBSNET) \
|
||||
&& !defined(WOLFSSL_SAFERTOS) && !defined(FREESCALE_MQX) \
|
||||
&& !defined(FREESCALE_KSDK_MQX) && !defined(FREESCALE_FREE_RTOS) \
|
||||
&& !defined(WOLFSSL_LEANPSK) && !defined(FREERTOS) && !defined(FREERTOS_TCP)\
|
||||
&& !defined(WOLFSSL_uITRON4)
|
||||
&& !defined(WOLFSSL_LEANPSK) && !defined(WOLFSSL_uITRON4)
|
||||
/* default C runtime, can install different routines at runtime via cbs */
|
||||
#include <wolfssl/wolfcrypt/memory.h>
|
||||
#ifdef WOLFSSL_STATIC_MEMORY
|
||||
|
Reference in New Issue
Block a user