Modify PlatformIO FreeRTOS include path, settings.h

This commit is contained in:
gojimmypi
2024-04-11 07:46:35 -07:00
parent ff09f418c0
commit b1261f5471
3 changed files with 38 additions and 4 deletions

View File

@ -9696,7 +9696,12 @@ ProtocolVersion MakeDTLSv1_3(void)
#elif defined(FREERTOS) #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) unsigned int LowResTimer(void)
{ {

View File

@ -12801,7 +12801,13 @@ void bench_sphincsKeySign(byte level, byte optim)
#elif defined(FREERTOS) #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) #if defined(WOLFSSL_ESPIDF)
/* prototype definition */ /* prototype definition */
int construct_argv(); int construct_argv();

View File

@ -265,6 +265,23 @@
/* Uncomment next line if using MAXQ108x */ /* Uncomment next line if using MAXQ108x */
/* #define WOLFSSL_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) #if defined(ARDUINO)
/* Due to limited build control, we'll ignore file warnings. */ /* Due to limited build control, we'll ignore file warnings. */
/* See https://github.com/arduino/arduino-cli/issues/631 */ /* See https://github.com/arduino/arduino-cli/issues/631 */
@ -1034,8 +1051,14 @@ extern void uITRON4_free(void *p) ;
#ifdef FREERTOS #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) && \ #if !defined(XMALLOC_USER) && !defined(NO_WOLFSSL_MEMORY) && \
!defined(WOLFSSL_STATIC_MEMORY) && !defined(WOLFSSL_TRACK_MEMORY) !defined(WOLFSSL_STATIC_MEMORY) && !defined(WOLFSSL_TRACK_MEMORY)