diff --git a/tools/unit-test-app/components/test_utils/CMakeLists.txt b/tools/unit-test-app/components/test_utils/CMakeLists.txt index 50efbdbbb7..f8ff927153 100644 --- a/tools/unit-test-app/components/test_utils/CMakeLists.txt +++ b/tools/unit-test-app/components/test_utils/CMakeLists.txt @@ -1,4 +1,4 @@ -set(COMPONENT_SRCS "ref_clock.c" +set(COMPONENT_SRCS "ref_clock_${CONFIG_IDF_TARGET}.c" "test_runner.c" "test_utils.c") set(COMPONENT_ADD_INCLUDEDIRS include) diff --git a/tools/unit-test-app/components/test_utils/component.mk b/tools/unit-test-app/components/test_utils/component.mk index e69de29bb2..0123566204 100644 --- a/tools/unit-test-app/components/test_utils/component.mk +++ b/tools/unit-test-app/components/test_utils/component.mk @@ -0,0 +1 @@ +COMPONENT_OBJEXCLUDE := ref_clock_esp32s2beta.o diff --git a/tools/unit-test-app/components/test_utils/ref_clock.c b/tools/unit-test-app/components/test_utils/ref_clock_esp32.c similarity index 99% rename from tools/unit-test-app/components/test_utils/ref_clock.c rename to tools/unit-test-app/components/test_utils/ref_clock_esp32.c index c66ff28b9e..0793a7eb4e 100644 --- a/tools/unit-test-app/components/test_utils/ref_clock.c +++ b/tools/unit-test-app/components/test_utils/ref_clock_esp32.c @@ -35,8 +35,6 @@ #include "soc/pcnt_periph.h" #include "soc/gpio_periph.h" #include "soc/dport_reg.h" -#include "esp32/rom/gpio.h" -#include "esp32/rom/ets_sys.h" #include "esp_intr_alloc.h" #include "freertos/FreeRTOS.h" #include "driver/periph_ctrl.h" diff --git a/tools/unit-test-app/components/test_utils/ref_clock_esp32s2beta.c b/tools/unit-test-app/components/test_utils/ref_clock_esp32s2beta.c new file mode 100644 index 0000000000..deaef88af4 --- /dev/null +++ b/tools/unit-test-app/components/test_utils/ref_clock_esp32s2beta.c @@ -0,0 +1 @@ +#warning "unit_test_app ref_clock not implemented for esp32s2beta" diff --git a/tools/unit-test-app/components/test_utils/test_utils.c b/tools/unit-test-app/components/test_utils/test_utils.c index fc16db9f03..8ad567f7a3 100644 --- a/tools/unit-test-app/components/test_utils/test_utils.c +++ b/tools/unit-test-app/components/test_utils/test_utils.c @@ -15,8 +15,6 @@ #include #include "unity.h" #include "test_utils.h" -#include "esp32/rom/ets_sys.h" -#include "esp32/rom/uart.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "tcpip_adapter.h"