diff --git a/components/esp_hw_support/test_apps/dma/CMakeLists.txt b/components/esp_hw_support/test_apps/dma/CMakeLists.txt index 349909489f..e87048a211 100644 --- a/components/esp_hw_support/test_apps/dma/CMakeLists.txt +++ b/components/esp_hw_support/test_apps/dma/CMakeLists.txt @@ -1,7 +1,5 @@ # This is the project CMakeLists.txt file for the test subproject cmake_minimum_required(VERSION 3.16) -set(EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/unit-test-app/components") - include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(dma_test) diff --git a/components/esp_hw_support/test_apps/dma/main/idf_component.yml b/components/esp_hw_support/test_apps/dma/main/idf_component.yml new file mode 100644 index 0000000000..2ae836a935 --- /dev/null +++ b/components/esp_hw_support/test_apps/dma/main/idf_component.yml @@ -0,0 +1,2 @@ +dependencies: + ccomp_timer: "^1.0.0" diff --git a/components/esp_hw_support/test_apps/dma/main/test_async_memcpy.c b/components/esp_hw_support/test_apps/dma/main/test_async_memcpy.c index 8d05e7ae6e..100b8768d3 100644 --- a/components/esp_hw_support/test_apps/dma/main/test_async_memcpy.c +++ b/components/esp_hw_support/test_apps/dma/main/test_async_memcpy.c @@ -14,12 +14,14 @@ #include "freertos/task.h" #include "freertos/semphr.h" #include "unity.h" -#include "test_utils.h" #include "ccomp_timer.h" #include "esp_async_memcpy.h" #include "soc/soc_caps.h" #include "hal/dma_types.h" +#define IDF_LOG_PERFORMANCE(item, value_fmt, value, ...) \ + printf("[Performance][%s]: " value_fmt "\n", item, value, ##__VA_ARGS__) + #define ALIGN_UP(addr, align) (((addr) + (align)-1) & ~((align)-1)) #define ALIGN_DOWN(size, align) ((size) & ~((align) - 1))