Skip to content

Commit b15185b

Browse files
author
kolban
committed
Thu Mar 23 23:47:47 CDT 2017
1 parent 731a564 commit b15185b

File tree

2 files changed

+140
-0
lines changed

2 files changed

+140
-0
lines changed

eclipse/c_includes.xml

+130
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<cdtprojectproperties>
3+
<section name="org.eclipse.cdt.internal.ui.wizards.settingswizards.IncludePaths">
4+
<language name="holder for library settings">
5+
6+
</language>
7+
<language name="Assembly">
8+
<includepath>${IDF_PATH}/components/vfs/include</includepath>
9+
<includepath>${IDF_PATH}/components/spi_flash/include</includepath>
10+
<includepath>${IDF_PATH}/components/json/include</includepath>
11+
<includepath>${IDF_PATH}/components/mbedtls/include</includepath>
12+
<includepath>${IDF_PATH}/components/bt/include</includepath>
13+
<includepath>${IDF_PATH}/components/bt/bluedroid/bta/include</includepath>
14+
<includepath>${IDF_PATH}/components/bt/bluedroid/bta/sys/include</includepath>
15+
<includepath>${IDF_PATH}/components/bt/bluedroid/btcore/include</includepath>
16+
<includepath>${IDF_PATH}/components/bt/bluedroid/device/include</includepath>
17+
<includepath>${IDF_PATH}/components/bt/bluedroid/gki/include</includepath>
18+
<includepath>${IDF_PATH}/components/bt/bluedroid/hci/include</includepath>
19+
<includepath>${IDF_PATH}/components/bt/bluedroid/osi/include</includepath>
20+
<includepath>${IDF_PATH}/components/bt/bluedroid/btc/profile/esp/blufi/include</includepath>
21+
<includepath>${IDF_PATH}/components/bt/bluedroid//btc/profile/esp/include</includepath>
22+
<includepath>${IDF_PATH}/components/bt/bluedroid/btc/profile/std/sdp/include</includepath>
23+
<includepath>${IDF_PATH}/components/bt/bluedroid/btc/profile/std/include</includepath>
24+
<includepath>${IDF_PATH}/components/bt/bluedroid/stack/gap/include</includepath>
25+
<includepath>${IDF_PATH}/components/bt/bluedroid/stack/gatt/include</includepath>
26+
<includepath>${IDF_PATH}/components/bt/bluedroid/stack/l2cap/include</includepath>
27+
<includepath>${IDF_PATH}/components/bt/bluedroid/stack/sdp/include</includepath>
28+
<includepath>${IDF_PATH}/components/bt/bluedroid/stack/smp/include</includepath>
29+
<includepath>${IDF_PATH}/components/bt/bluedroid/stack/include</includepath>
30+
<includepath>${IDF_PATH}/components/bt/bluedroid/api/include</includepath>
31+
32+
</language>
33+
<language name="GNU C++">
34+
<includepath>/opt/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0</includepath>
35+
<includepath>${IDF_PATH}/components/esp32/include</includepath>
36+
<includepath>${IDF_PATH}/components/newlib/include</includepath>
37+
<includepath>${IDF_PATH}/components/freertos/include</includepath>
38+
<includepath>${IDF_PATH}/components/nvs_flash/include</includepath>
39+
<includepath>${IDF_PATH}/components/driver/include</includepath>
40+
<includepath>${IDF_PATH}/components/log/include</includepath>
41+
<includepath>${IDF_PATH}/components/tcpip_adapter/include</includepath>
42+
<includepath>${IDF_PATH}/components/lwip/include/lwip</includepath>
43+
<includepath>${IDF_PATH}/components/vfs/include</includepath>
44+
<includepath>${IDF_PATH}/components/spi_flash/include</includepath>
45+
<includepath>${IDF_PATH}/components/mbedtls/include</includepath>
46+
<includepath>${IDF_PATH}/components/json/include</includepath>
47+
<includepath>${IDF_PATH}/components/bt/include</includepath>
48+
<includepath>${IDF_PATH}/components/bt/bluedroid/bta/include</includepath>
49+
<includepath>${IDF_PATH}/components/bt/bluedroid/bta/sys/include</includepath>
50+
<includepath>${IDF_PATH}/components/bt/bluedroid/btcore/include</includepath>
51+
<includepath>${IDF_PATH}/components/bt/bluedroid/device/include</includepath>
52+
<includepath>${IDF_PATH}/components/bt/bluedroid/gki/include</includepath>
53+
<includepath>${IDF_PATH}/components/bt/bluedroid/hci/include</includepath>
54+
<includepath>${IDF_PATH}/components/bt/bluedroid/osi/include</includepath>
55+
<includepath>${IDF_PATH}/components/bt/bluedroid/btc/profile/esp/blufi/include</includepath>
56+
<includepath>${IDF_PATH}/components/bt/bluedroid//btc/profile/esp/include</includepath>
57+
<includepath>${IDF_PATH}/components/bt/bluedroid/btc/profile/std/sdp/include</includepath>
58+
<includepath>${IDF_PATH}/components/bt/bluedroid/btc/profile/std/include</includepath>
59+
<includepath>${IDF_PATH}/components/bt/bluedroid/stack/gap/include</includepath>
60+
<includepath>${IDF_PATH}/components/bt/bluedroid/stack/gatt/include</includepath>
61+
<includepath>${IDF_PATH}/components/bt/bluedroid/stack/l2cap/include</includepath>
62+
<includepath>${IDF_PATH}/components/bt/bluedroid/stack/sdp/include</includepath>
63+
<includepath>${IDF_PATH}/components/bt/bluedroid/stack/smp/include</includepath>
64+
<includepath>${IDF_PATH}/components/bt/bluedroid/api/include</includepath>
65+
<includepath>${IDF_PATH}/components/bt/bluedroid/stack/include</includepath>
66+
<includepath>/opt/xtensa-esp32-elf/lib/gcc/xtensa-esp32-elf/5.2.0/include</includepath>
67+
68+
</language>
69+
<language name="GNU C">
70+
<includepath>/opt/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0</includepath>
71+
<includepath>${IDF_PATH}/components/esp32/include</includepath>
72+
<includepath>${IDF_PATH}/components/newlib/include</includepath>
73+
<includepath>${IDF_PATH}/components/freertos/include</includepath>
74+
<includepath>${IDF_PATH}/components/nvs_flash/include</includepath>
75+
<includepath>${IDF_PATH}/components/driver/include</includepath>
76+
<includepath>${IDF_PATH}/components/log/include</includepath>
77+
<includepath>${IDF_PATH}/components/tcpip_adapter/include</includepath>
78+
<includepath>${IDF_PATH}/components/lwip/include/lwip</includepath>
79+
<includepath>${IDF_PATH}/components/vfs/include</includepath>
80+
<includepath>${IDF_PATH}/components/json/include</includepath>
81+
<includepath>${IDF_PATH}/components/spi_flash/include</includepath>
82+
<includepath>${IDF_PATH}/components/mbedtls/include</includepath>
83+
<includepath>${IDF_PATH}/components/bt/include</includepath>
84+
<includepath>${IDF_PATH}/components/bt/bluedroid/bta/include</includepath>
85+
<includepath>${IDF_PATH}/components/bt/bluedroid/bta/sys/include</includepath>
86+
<includepath>${IDF_PATH}/components/bt/bluedroid/btcore/include</includepath>
87+
<includepath>${IDF_PATH}/components/bt/bluedroid/device/include</includepath>
88+
<includepath>${IDF_PATH}/components/bt/bluedroid/gki/include</includepath>
89+
<includepath>${IDF_PATH}/components/bt/bluedroid/hci/include</includepath>
90+
<includepath>${IDF_PATH}/components/bt/bluedroid/osi/include</includepath>
91+
<includepath>${IDF_PATH}/components/bt/bluedroid/btc/profile/esp/blufi/include</includepath>
92+
<includepath>${IDF_PATH}/components/bt/bluedroid/btc/profile/esp/include</includepath>
93+
<includepath>${IDF_PATH}/components/bt/bluedroid/btc/profile/std/sdp/include</includepath>
94+
<includepath>${IDF_PATH}/components/bt/bluedroid/btc/profile/std/include</includepath>
95+
<includepath>${IDF_PATH}/components/bt/bluedroid/stack/gap/include</includepath>
96+
<includepath>${IDF_PATH}/components/bt/bluedroid/stack/gatt/include</includepath>
97+
<includepath>${IDF_PATH}/components/bt/bluedroid/stack/l2cap/include</includepath>
98+
<includepath>${IDF_PATH}/components/bt/bluedroid/stack/sdp/include</includepath>
99+
<includepath>${IDF_PATH}/components/bt/bluedroid/stack/smp/include</includepath>
100+
<includepath>${IDF_PATH}/components/bt/bluedroid/stack/include</includepath>
101+
<includepath>${IDF_PATH}/components/bt/bluedroid/api/include</includepath>
102+
<includepath>${IDF_PATH}/components/bt/bluedroid/include</includepath>
103+
<includepath>/opt/xtensa-esp32-elf/lib/gcc/xtensa-esp32-elf/5.2.0/include</includepath>
104+
105+
</language>
106+
</section>
107+
<section name="org.eclipse.cdt.internal.ui.wizards.settingswizards.Macros">
108+
<language name="holder for library settings">
109+
110+
</language>
111+
<language name="Assembly">
112+
<macro>
113+
<name>ESP_PLATFORM</name><value>1</value>
114+
</macro>
115+
116+
</language>
117+
<language name="GNU C++">
118+
<macro>
119+
<name>ESP_PLATFORM</name><value>1</value>
120+
</macro>
121+
122+
</language>
123+
<language name="GNU C">
124+
<macro>
125+
<name>ESP_PLATFORM</name><value>1</value>
126+
</macro>
127+
128+
</language>
129+
</section>
130+
</cdtprojectproperties>

skeletons/cpp/main_helloworld.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
1+
/*
2+
* 1. Open up the project properties
3+
* 2. Visit C/C++ General > Preprocessor Include Paths, Macros, etc
4+
* 3. Select the Providers tab
5+
* 4. Check the box for "CDT GCC Built-in Compiler Settings"
6+
* 5. Set the compiler spec command to "xtensa-esp32-elf-gcc ${FLAGS} -E -P -v -dD "${INPUTS}""
7+
* 6. Rebuild the index
8+
*/
9+
110
#include <esp_log.h>
211
#include <string>
312
#include "sdkconfig.h"
413

14+
515
static char tag[]="cpp_helloworld";
616

717
extern "C" {

0 commit comments

Comments
 (0)