Skip to content

Commit

Permalink
Thu Mar 23 23:47:47 CDT 2017
Browse files Browse the repository at this point in the history
  • Loading branch information
kolban committed Mar 24, 2017
1 parent 731a564 commit b15185b
Show file tree
Hide file tree
Showing 2 changed files with 140 additions and 0 deletions.
130 changes: 130 additions & 0 deletions eclipse/c_includes.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
<?xml version="1.0" encoding="UTF-8"?>
<cdtprojectproperties>
<section name="org.eclipse.cdt.internal.ui.wizards.settingswizards.IncludePaths">
<language name="holder for library settings">

</language>
<language name="Assembly">
<includepath>${IDF_PATH}/components/vfs/include</includepath>
<includepath>${IDF_PATH}/components/spi_flash/include</includepath>
<includepath>${IDF_PATH}/components/json/include</includepath>
<includepath>${IDF_PATH}/components/mbedtls/include</includepath>
<includepath>${IDF_PATH}/components/bt/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/bta/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/bta/sys/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/btcore/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/device/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/gki/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/hci/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/osi/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/btc/profile/esp/blufi/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid//btc/profile/esp/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/btc/profile/std/sdp/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/btc/profile/std/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/stack/gap/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/stack/gatt/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/stack/l2cap/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/stack/sdp/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/stack/smp/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/stack/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/api/include</includepath>

</language>
<language name="GNU C++">
<includepath>/opt/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0</includepath>
<includepath>${IDF_PATH}/components/esp32/include</includepath>
<includepath>${IDF_PATH}/components/newlib/include</includepath>
<includepath>${IDF_PATH}/components/freertos/include</includepath>
<includepath>${IDF_PATH}/components/nvs_flash/include</includepath>
<includepath>${IDF_PATH}/components/driver/include</includepath>
<includepath>${IDF_PATH}/components/log/include</includepath>
<includepath>${IDF_PATH}/components/tcpip_adapter/include</includepath>
<includepath>${IDF_PATH}/components/lwip/include/lwip</includepath>
<includepath>${IDF_PATH}/components/vfs/include</includepath>
<includepath>${IDF_PATH}/components/spi_flash/include</includepath>
<includepath>${IDF_PATH}/components/mbedtls/include</includepath>
<includepath>${IDF_PATH}/components/json/include</includepath>
<includepath>${IDF_PATH}/components/bt/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/bta/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/bta/sys/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/btcore/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/device/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/gki/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/hci/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/osi/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/btc/profile/esp/blufi/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid//btc/profile/esp/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/btc/profile/std/sdp/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/btc/profile/std/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/stack/gap/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/stack/gatt/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/stack/l2cap/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/stack/sdp/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/stack/smp/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/api/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/stack/include</includepath>
<includepath>/opt/xtensa-esp32-elf/lib/gcc/xtensa-esp32-elf/5.2.0/include</includepath>

</language>
<language name="GNU C">
<includepath>/opt/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0</includepath>
<includepath>${IDF_PATH}/components/esp32/include</includepath>
<includepath>${IDF_PATH}/components/newlib/include</includepath>
<includepath>${IDF_PATH}/components/freertos/include</includepath>
<includepath>${IDF_PATH}/components/nvs_flash/include</includepath>
<includepath>${IDF_PATH}/components/driver/include</includepath>
<includepath>${IDF_PATH}/components/log/include</includepath>
<includepath>${IDF_PATH}/components/tcpip_adapter/include</includepath>
<includepath>${IDF_PATH}/components/lwip/include/lwip</includepath>
<includepath>${IDF_PATH}/components/vfs/include</includepath>
<includepath>${IDF_PATH}/components/json/include</includepath>
<includepath>${IDF_PATH}/components/spi_flash/include</includepath>
<includepath>${IDF_PATH}/components/mbedtls/include</includepath>
<includepath>${IDF_PATH}/components/bt/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/bta/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/bta/sys/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/btcore/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/device/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/gki/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/hci/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/osi/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/btc/profile/esp/blufi/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/btc/profile/esp/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/btc/profile/std/sdp/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/btc/profile/std/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/stack/gap/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/stack/gatt/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/stack/l2cap/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/stack/sdp/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/stack/smp/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/stack/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/api/include</includepath>
<includepath>${IDF_PATH}/components/bt/bluedroid/include</includepath>
<includepath>/opt/xtensa-esp32-elf/lib/gcc/xtensa-esp32-elf/5.2.0/include</includepath>

</language>
</section>
<section name="org.eclipse.cdt.internal.ui.wizards.settingswizards.Macros">
<language name="holder for library settings">

</language>
<language name="Assembly">
<macro>
<name>ESP_PLATFORM</name><value>1</value>
</macro>

</language>
<language name="GNU C++">
<macro>
<name>ESP_PLATFORM</name><value>1</value>
</macro>

</language>
<language name="GNU C">
<macro>
<name>ESP_PLATFORM</name><value>1</value>
</macro>

</language>
</section>
</cdtprojectproperties>
10 changes: 10 additions & 0 deletions skeletons/cpp/main_helloworld.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
/*
* 1. Open up the project properties
* 2. Visit C/C++ General > Preprocessor Include Paths, Macros, etc
* 3. Select the Providers tab
* 4. Check the box for "CDT GCC Built-in Compiler Settings"
* 5. Set the compiler spec command to "xtensa-esp32-elf-gcc ${FLAGS} -E -P -v -dD "${INPUTS}""
* 6. Rebuild the index
*/

#include <esp_log.h>
#include <string>
#include "sdkconfig.h"


static char tag[]="cpp_helloworld";

extern "C" {
Expand Down

0 comments on commit b15185b

Please sign in to comment.