File tree Expand file tree Collapse file tree 4 files changed +44
-3
lines changed
idf_component_examples/client/main Expand file tree Collapse file tree 4 files changed +44
-3
lines changed Original file line number Diff line number Diff line change @@ -102,3 +102,40 @@ jobs:
102
102
103
103
- run : PLATFORMIO_SRC_DIR=examples/Client PIO_BOARD=${{ matrix.board }} pio run -e ${{ matrix.env }}
104
104
- run : PLATFORMIO_SRC_DIR=examples/FetchWebsite PIO_BOARD=${{ matrix.board }} pio run -e ${{ matrix.env }}
105
+
106
+ esp-idf :
107
+ name : Build with ESP-IDF ${{ matrix.idf_ver }} for ${{ matrix.idf_target }}
108
+ runs-on : ubuntu-latest
109
+ strategy :
110
+ fail-fast : false
111
+ matrix :
112
+ # The version names here correspond to the versions of espressif/idf Docker image.
113
+ # See https://hub.docker.com/r/espressif/idf/tags and
114
+ # https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/tools/idf-docker-image.html
115
+ # for details.
116
+ idf_ver : ["release-v5.4"]
117
+ idf_target :
118
+ [
119
+ " esp32" ,
120
+ " esp32s2" ,
121
+ " esp32s3" ,
122
+ " esp32c2" ,
123
+ " esp32c3" ,
124
+ " esp32c6" ,
125
+ " esp32h2" ,
126
+ " esp32p4"
127
+ ]
128
+ container : espressif/idf:${{ matrix.idf_ver }}
129
+ steps :
130
+ - name : Checkout
131
+ uses : actions/checkout@v4
132
+ with :
133
+ path : components/asynctcp
134
+
135
+ - name : Build
136
+ env :
137
+ IDF_TARGET : ${{ matrix.idf_target }}
138
+ shell : bash
139
+ run : |
140
+ . ${IDF_PATH}/export.sh
141
+ idf.py -C ./components/asynctcp/idf_component_examples/client -DEXTRA_COMPONENT_DIRS=$PWD/components build
Original file line number Diff line number Diff line change 1
1
idf_component_register (SRCS "main.cpp"
2
- INCLUDE_DIRS "." )
2
+ INCLUDE_DIRS "."
3
+ PRIV_REQUIRES esp_timer )
Original file line number Diff line number Diff line change @@ -5,5 +5,5 @@ dependencies:
5
5
override_path : " ../../../"
6
6
pre_release : true
7
7
espressif/arduino-esp32 :
8
- version : " ^3.1.1 "
8
+ version : " >=3.0.5 "
9
9
require : public
Original file line number Diff line number Diff line change 12
12
#include < NetworkInterface.h>
13
13
#endif
14
14
#else
15
+ #include " esp_timer.h"
15
16
#define log_e (...) ESP_LOGE(__FILE__, __VA_ARGS__)
16
17
#define log_w (...) ESP_LOGW(__FILE__, __VA_ARGS__)
17
18
#define log_i (...) ESP_LOGI(__FILE__, __VA_ARGS__)
18
19
#define log_d (...) ESP_LOGD(__FILE__, __VA_ARGS__)
19
20
#define log_v (...) ESP_LOGV(__FILE__, __VA_ARGS__)
20
- #define millis () (esp_timer_get_time() / 1000ULL )
21
+ static unsigned long millis () {
22
+ return (unsigned long )(esp_timer_get_time () / 1000ULL );
23
+ }
21
24
#endif
22
25
23
26
extern " C" {
You can’t perform that action at this time.
0 commit comments