diff --git a/components/wear_levelling/CMakeLists.txt b/components/wear_levelling/CMakeLists.txt index e7e2022b8b..e5d39463be 100644 --- a/components/wear_levelling/CMakeLists.txt +++ b/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" diff --git a/components/wear_levelling/test/test_wl.c b/components/wear_levelling/test/test_wl.c index 77cf31f50c..95acca2cae 100644 --- a/components/wear_levelling/test/test_wl.c +++ b/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"