COMPONENT_ADD_LDFLAGS += -u __cxx_fatal_exception
endif
+COMPONENT_ADD_INCLUDEDIRS =
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).
/* 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));
#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;
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.")
* 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
-------------------
* 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
* 点击 “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” 属性页面。