fix freertos includes
This commit is contained in:
@@ -18,8 +18,7 @@
|
|||||||
"srcFilter": [
|
"srcFilter": [
|
||||||
"+<libs/main/core/*.cpp>",
|
"+<libs/main/core/*.cpp>",
|
||||||
"+<libs/main/containers/*.cpp>",
|
"+<libs/main/containers/*.cpp>",
|
||||||
"+<libs/main/math/*.cpp>",
|
"+<libs/main/math/*.cpp>"
|
||||||
"+<libs/main/thread/*.cpp>"
|
|
||||||
],
|
],
|
||||||
"extraScript": "platformio_pre.py",
|
"extraScript": "platformio_pre.py",
|
||||||
"flags": "-DPIP_FREERTOS"
|
"flags": "-DPIP_FREERTOS"
|
||||||
|
|||||||
@@ -40,6 +40,15 @@ typedef LONG(NTAPI*PINtSetTimerResolution)(ULONG, BOOLEAN, PULONG);
|
|||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
#ifdef FREERTOS
|
||||||
|
# ifdef ESP_PLATFORM
|
||||||
|
# include "freertos/FreeRTOS.h"
|
||||||
|
# include "freertos/task.h"
|
||||||
|
# endif
|
||||||
|
# ifdef ARDUINO_ARCH_STM32
|
||||||
|
# include <STM32FreeRTOS.h>
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#endif // PIINCLUDES_P_H
|
#endif // PIINCLUDES_P_H
|
||||||
|
|||||||
@@ -31,10 +31,6 @@
|
|||||||
//# include <crt_externs.h>
|
//# include <crt_externs.h>
|
||||||
extern clock_serv_t __pi_mac_clock;
|
extern clock_serv_t __pi_mac_clock;
|
||||||
#endif
|
#endif
|
||||||
#ifdef FREERTOS
|
|
||||||
# include "freertos/FreeRTOS.h"
|
|
||||||
# include "freertos/task.h"
|
|
||||||
#endif
|
|
||||||
#ifdef MICRO_PIP
|
#ifdef MICRO_PIP
|
||||||
# include <sys/time.h>
|
# include <sys/time.h>
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user