]> granicus.if.org Git - esp-idf/commitdiff
Merge branch 'bugfix/github_prs' into 'master'
authorAngus Gratton <angus@espressif.com>
Tue, 5 Jun 2018 03:51:35 +0000 (11:51 +0800)
committerAngus Gratton <angus@espressif.com>
Tue, 5 Jun 2018 03:51:35 +0000 (11:51 +0800)
Merge some small fixes from Github

See merge request idf/esp-idf!2500

components/cxx/component.mk
components/cxx/cxx_guards.cpp
components/freertos/include/freertos/portable.h
components/nvs_flash/src/nvs_api.cpp
components/partition_table/gen_esp32part.py
docs/en/get-started/eclipse-setup-windows.rst
docs/en/get-started/eclipse-setup.rst
docs/zh_CN/get-started/eclipse-setup-windows.rst

index 00e05e0db23f40ed56b492caec88e00ed4c03666..7d819675a892bee46c5417d8647e46996d5c6b23 100644 (file)
@@ -9,3 +9,4 @@ ifndef CONFIG_CXX_EXCEPTIONS
 COMPONENT_ADD_LDFLAGS += -u __cxx_fatal_exception
 endif
 
+COMPONENT_ADD_INCLUDEDIRS =
index 288ff3ea03c72a49f0a8a74c452c15ca1d2bd199..48819a7ab573cfb2ccce2e594224bcf9a13b67c4 100644 (file)
@@ -33,6 +33,10 @@ static size_t s_static_init_waiting_count = 0;              //!< number of tasks
 static size_t s_static_init_max_waiting_count = 0;          //!< maximum ever value of the above; can be inspected using GDB for debugging purposes
 #endif
 
+extern "C" int __cxa_guard_acquire(__guard* pg);
+extern "C" void __cxa_guard_release(__guard* pg);
+extern "C" void __cxa_guard_abort(__guard* pg);
+extern "C" void __cxa_guard_dummy();
 
 /**
  * Layout of the guard object (defined by the ABI).
index 9fe74b60c0afdfd27b846afaec83de10aa27a224..33b740e8903f5977fa74a1cf69eb08f15a78893d 100644 (file)
@@ -205,7 +205,7 @@ BaseType_t xPortInterruptedFromISRContext();
 /* Multi-core: get current core ID */
 static inline uint32_t IRAM_ATTR xPortGetCoreID() {
     int id;
-    asm (
+    __asm__ (
         "rsr.prid %0\n"
         " extui %0,%0,13,1"
         :"=r"(id));
index 40d67b942b492ea81e11d5b6bf1c08fc404ccf87..8d0e6c038935fcc686ccde7a65e5d2061361d465 100644 (file)
@@ -28,6 +28,9 @@ static const char* TAG = "nvs";
 #define ESP_LOGD(...)
 #endif
 
+extern "C" void nvs_dump(const char *partName);
+extern "C" esp_err_t nvs_flash_init_custom(const char *partName, uint32_t baseSector, uint32_t sectorCount);
+
 class HandleEntry : public intrusive_list_node<HandleEntry>
 {
     static uint32_t s_nvs_next_handle;
index 275976b741f0897d4b5dafeb98e3f1ce7ac1bfb0..0e3a0b7e95a76921f8395fa1c28cccf667f76a5a 100755 (executable)
@@ -250,6 +250,18 @@ class PartitionDefinition(object):
     def __cmp__(self, other):
         return self.offset - other.offset
 
+    def __lt__(self, other):
+        return self.offset < other.offset
+
+    def __gt__(self, other):
+        return self.offset > other.offset
+
+    def __le__(self, other):
+        return self.offset <= other.offset
+
+    def __ge__(self, other):
+        return self.offset >= other.offset
+
     def parse_type(self, strval):
         if strval == "":
             raise InputError("Field 'type' can't be left empty.")
index 2728eb297073bc7eadb034c0088f3aeaa8a0c4b4..0bfba92262b327400bcd523f2d41b925a1c8f4be 100644 (file)
@@ -61,6 +61,9 @@ Project Properties
 
      * In the list of providers, click "CDT GCC Build Output Parser" and type ``xtensa-esp32-elf-`` at the beginning of the Compiler command pattern, and wrap remaining part with brackets. This means the full Compiler command pattern should be ``xtensa-esp32-elf-((g?cc)|([gc]\+\+)|(clang))``
 
+Navigate to "C/C++ General" -> "Indexer" property page:
+
+* Uncheck "Allow heuristic resolution of includes". When this option is enabled Eclipse sometimes fails to find correct header directories.
 
 Building in Eclipse
 -------------------
index 7d17d6c1590b5d37a69ddfa66191f7c46eb5a7af..d3102d5a0ba429c523a1666811b53b2d4363d38c 100644 (file)
@@ -63,6 +63,10 @@ Navigate to "C/C++ General" -> "Preprocessor Include Paths" property page:
 
 * In the list of providers, click "CDT GCC Build Output Parser" and type ``xtensa-esp32-elf-`` at the beginning of the Compiler command pattern. This means the full Compiler command pattern should be ``xtensa-esp32-elf-(g?cc)|([gc]\+\+)|(clang)``
 
+Navigate to "C/C++ General" -> "Indexer" property page:
+
+* Uncheck "Allow heuristic resolution of includes". When this option is enabled Eclipse sometimes fails to find correct header directories.
+
 .. _eclipse-build-project:
 
 Building in Eclipse
index 4047dc939e86a221ff1370bff53c04ff6acdd733..f386d83b8d208ff22b7c310066bf45b2aefc1c4d 100644 (file)
@@ -44,7 +44,7 @@ Windows 平台上的 Eclipse 配置
 
 * 点击 “C/C++ Build” 属性页。
 
-       * 取消选中 “Use default build command”,然后输入命令:``python${IDF_PATH}/tools/windows/eclipse_make.py``,开始自定义创建。
+       * 取消选中 “Use default build command”,然后输入命令:``python ${IDF_PATH}/tools/windows/eclipse_make.py``,开始自定义创建。
 
 * 点击 “C/C++ Build” 下的 “Environment” 属性页面。