Skip to content

Commit 7d2348c

Browse files
Merge branch 'fix/usb_device_uac_priv_require_idf_6' into 'master'
fix(usb_device_uac): Fix private requires usb component for IDF 6.0 See merge request ae_group/esp-iot-solution!1379
2 parents d165b72 + d158ad6 commit 7d2348c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

components/usb/usb_device_uac/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1+
set(priv_requires esp_timer)
2+
3+
if(${IDF_VERSION_MAJOR} LESS 6)
4+
list(APPEND priv_requires usb) # USB PHY is part of usb component in IDF < 6.0
5+
endif()
6+
17
idf_component_register(SRCS usb_device_uac.c
28
INCLUDE_DIRS "include"
3-
PRIV_REQUIRES usb esp_timer)
9+
PRIV_REQUIRES ${priv_requires})
410

511
if(NOT CONFIG_USB_DEVICE_UAC_AS_PART)
612
# Determine whether tinyusb is fetched from component registry or from local path

0 commit comments

Comments
 (0)