Merge pull request #7413 from gojimmypi/PR-PlatformIO-FreeRTOS

Modify PlatformIO FreeRTOS include path, settings.h
pull/7423/head
JacobBarthelmeh 2024-04-12 14:32:55 -06:00 committed by GitHub
commit 3742c4dd57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 38 additions and 4 deletions

View File

@ -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)
{

View File

@ -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();

View File

@ -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)