File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 3
3
4
4
#include " AsyncTCP.h"
5
5
6
+ #ifdef ESP32
6
7
#include < esp_log.h>
7
8
8
9
#ifdef ARDUINO
@@ -22,6 +23,11 @@ static unsigned long millis() {
22
23
return (unsigned long )(esp_timer_get_time () / 1000ULL );
23
24
}
24
25
#endif
26
+ #endif
27
+
28
+ #ifdef LIBRETINY
29
+ #include < Arduino.h>
30
+ #endif
25
31
26
32
extern " C" {
27
33
#include " lwip/dns.h"
Original file line number Diff line number Diff line change 7
7
#include " AsyncTCPVersion.h"
8
8
#define ASYNCTCP_FORK_ESP32Async
9
9
10
+ #ifdef ESP32
10
11
#include < esp_idf_version.h>
12
+ #else
13
+ #define ESP_IDF_VERSION_MAJOR (0 )
14
+ #endif
11
15
12
16
#ifdef ARDUINO
13
17
#include " IPAddress.h"
@@ -29,9 +33,11 @@ extern "C" {
29
33
#else
30
34
extern " C" {
31
35
#include < lwip/pbuf.h>
36
+ #include < FreeRTOS.h>
32
37
#include < semphr.h>
33
38
}
34
39
#define CONFIG_ASYNC_TCP_RUNNING_CORE -1 // any available core
40
+ #define CONFIG_FREERTOS_UNICORE 1
35
41
#endif
36
42
37
43
// If core is not defined, then we are running in Arduino or PIO
You can’t perform that action at this time.
0 commit comments