From 851e665412cce1969048f2a4d50c6d766d8f0b6a Mon Sep 17 00:00:00 2001 From: Alexey Zholtikov Date: Sun, 22 Mar 2026 14:49:37 +0300 Subject: [PATCH] feat: added esp-idf v6.0.0 support --- CMakeLists.txt | 8 +++++++- version.txt | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a421f12..bc019fa 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1 +1,7 @@ -idf_component_register(SRCS "zh_tachometer.c" INCLUDE_DIRS "include" REQUIRES driver esp_timer) \ No newline at end of file +if(${IDF_VERSION_MAJOR} STREQUAL 6) + set(requires esp_driver_gpio esp_driver_pcnt esp_timer) +else() + set(requires driver esp_timer) +endif() + +idf_component_register(SRCS "zh_tachometer.c" INCLUDE_DIRS "include" REQUIRES ${requires}) \ No newline at end of file diff --git a/version.txt b/version.txt index afaf360..1cc5f65 100755 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.0.0 \ No newline at end of file +1.1.0 \ No newline at end of file