mirror of https://github.com/wolfSSL/wolfssl.git
Modify PlatformIO FreeRTOS include path, settings.h
parent
ff09f418c0
commit
b1261f5471
|
@ -9696,7 +9696,12 @@ ProtocolVersion MakeDTLSv1_3(void)
|
|||
|
||||
#elif defined(FREERTOS)
|
||||
|
||||
#include "task.h"
|
||||
#ifdef PLATFORMIO
|
||||
#include <freertos/FreeRTOS.h>
|
||||
#include <freertos/task.h>
|
||||
#else
|
||||
#include "task.h"
|
||||
#endif
|
||||
|
||||
unsigned int LowResTimer(void)
|
||||
{
|
||||
|
|
|
@ -12801,7 +12801,13 @@ void bench_sphincsKeySign(byte level, byte optim)
|
|||
|
||||
#elif defined(FREERTOS)
|
||||
|
||||
#include "task.h"
|
||||
#ifdef PLATFORMIO
|
||||
#include <freertos/FreeRTOS.h>
|
||||
#include <freertos/task.h>
|
||||
#else
|
||||
#include "task.h"
|
||||
#endif
|
||||
|
||||
#if defined(WOLFSSL_ESPIDF)
|
||||
/* prototype definition */
|
||||
int construct_argv();
|
||||
|
|
|
@ -265,6 +265,23 @@
|
|||
/* Uncomment next line if using MAXQ108x */
|
||||
/* #define WOLFSSL_MAXQ108X */
|
||||
|
||||
/* Check PLATFORMIO first, as it may define other known environments. */
|
||||
#ifdef PLATFORMIO
|
||||
#ifdef ESP_PLATFORM
|
||||
/* Turn on the wolfSSL ESPIDF flag for the PlatformIO ESP-IDF detect */
|
||||
#define WOLFSSL_ESPIDF
|
||||
#endif /* ESP_PLATFORM */
|
||||
|
||||
/* Ensure all PlatformIO boards have the wolfSSL user_setting.h enabled. */
|
||||
#ifndef WOLFSSL_USER_SETTINGS
|
||||
#define WOLFSSL_USER_SETTINGS
|
||||
#endif /* WOLFSSL_USER_SETTINGS */
|
||||
|
||||
/* Similar to Arduino we have limited build control, so suppress warning */
|
||||
#undef WOLFSSL_IGNORE_FILE_WARN
|
||||
#define WOLFSSL_IGNORE_FILE_WARN
|
||||
#endif
|
||||
|
||||
#if defined(ARDUINO)
|
||||
/* Due to limited build control, we'll ignore file warnings. */
|
||||
/* See https://github.com/arduino/arduino-cli/issues/631 */
|
||||
|
@ -1034,8 +1051,14 @@ extern void uITRON4_free(void *p) ;
|
|||
|
||||
|
||||
#ifdef FREERTOS
|
||||
#include "FreeRTOS.h"
|
||||
#include <task.h>
|
||||
|
||||
#ifdef PLATFORMIO
|
||||
#include <freertos/FreeRTOS.h>
|
||||
#include <freertos/task.h>
|
||||
#else
|
||||
#include "FreeRTOS.h"
|
||||
#include <task.h>
|
||||
#endif
|
||||
|
||||
#if !defined(XMALLOC_USER) && !defined(NO_WOLFSSL_MEMORY) && \
|
||||
!defined(WOLFSSL_STATIC_MEMORY) && !defined(WOLFSSL_TRACK_MEMORY)
|
||||
|
|
Loading…
Reference in New Issue