File tree Expand file tree Collapse file tree
wolfcrypt/src/port/Espressif Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4141 CFLAGS +=-DWOLFSSL_USER_SETTINGS"
4242#endif
4343
44+ #ifndef SINGLE_THREADED
45+ #ifdef PLATFORMIO
46+ #include <freertos/semphr.h>
47+ #else
48+ #include "semphr.h"
49+ #endif
50+ #endif
51+
4452/* Espressif */
4553#include "sdkconfig.h" /* programmatically generated from sdkconfig */
4654#include <esp_log.h>
@@ -257,9 +265,6 @@ esp_err_t esp_sdk_mem_lib_init(void)
257265 ESP_LOGI (TAG , "esp_sdk_mem_lib_init Ver %d" , ESP_SDK_MEM_LIB_VERSION );
258266 return ret ;
259267}
260- #ifndef SINGLE_THREADED
261- #include "semphr.h"
262- #endif
263268
264269void * wc_debug_pvPortMalloc (size_t size ,
265270 const char * file , int line , const char * fname ) {
Original file line number Diff line number Diff line change @@ -1116,7 +1116,11 @@ extern void uITRON4_free(void *p) ;
11161116 #endif
11171117
11181118 #ifndef SINGLE_THREADED
1119- #include "semphr.h"
1119+ #ifdef PLATFORMIO
1120+ #include <freertos/semphr.h>
1121+ #else
1122+ #include "semphr.h"
1123+ #endif
11201124 #endif
11211125#endif
11221126
You can’t perform that action at this time.
0 commit comments