Эх сурвалжийг харах

wear_levelling: Re-enable for ESP32-C3

Angus Gratton 5 жил өмнө
parent
commit
570ef56d86

+ 0 - 4
components/wear_levelling/CMakeLists.txt

@@ -1,7 +1,3 @@
-idf_build_get_property(target IDF_TARGET)
-if(${target} STREQUAL "esp32c3")
-    return() # TODO ESP32-C3 IDF-2180
-endif()
 idf_component_register(SRCS "Partition.cpp"
                             "SPI_Flash.cpp"
                             "WL_Ext_Perf.cpp"

+ 2 - 0
components/wear_levelling/test/test_wl.c

@@ -13,6 +13,8 @@
 #include "esp32s2/clk.h"
 #elif CONFIG_IDF_TARGET_ESP32S3
 #include "esp32s3/clk.h"
+#elif CONFIG_IDF_TARGET_ESP32C3
+#include "esp32c3/clk.h"
 #endif
 #include "soc/cpu.h"
 #include "esp_rom_sys.h"