Skip to content

Commit 3665569

Browse files
committed
fix(servo): update for IDF6
1 parent ab9021a commit 3665569

3 files changed

Lines changed: 13 additions & 3 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
idf_component_register(SRCS "iot_servo.c"
22
INCLUDE_DIRS include
3-
REQUIRES driver)
3+
REQUIRES driver esp_driver_ledc esp_driver_gpio)

components/motor/servo/test_apps/CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@
22
# in this exact order for cmake to work correctly
33
cmake_minimum_required(VERSION 3.5)
44

5-
set(EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/unit-test-app/components"
6-
"../../servo")
5+
if (EXISTS "$ENV{IDF_PATH}/tools/unit-test-app/components")
6+
set(EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/unit-test-app/components")
7+
elseif (EXISTS "$ENV{IDF_PATH}/tools/test_apps/components")
8+
set(EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/test_apps/components")
9+
else()
10+
message(FATAL_ERROR "Could not find unit-test-app or test_apps components")
11+
endif()
712

813
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
914
project(servo_test)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
dependencies:
2+
idf:
3+
version: ">=4.4"
4+
servo:
5+
override_path: "../.."

0 commit comments

Comments
 (0)