Skip to content

Commit 39e499e

Browse files
fix(esp_tinyusb): Fix usb component dependency for test app
- usb dependency used to access USB PHY API - USB PHY removed from USB component in IDF 6.0
1 parent 2863968 commit 39e499e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1+
# 1. USB component dependency in IDF < 6.0 is used only to access USB PHY
2+
# 2. USB PHY was removed from the usb component in IDF 6.0 to esp_hw_support
3+
set(priv_requires "")
4+
if(${IDF_VERSION_MAJOR} LESS 6)
5+
list(APPEND priv_requires usb)
6+
endif()
7+
18
idf_component_register(SRC_DIRS .
29
INCLUDE_DIRS .
310
PRIV_INCLUDE_DIRS "../../../include_private"
4-
PRIV_REQUIRES usb
11+
PRIV_REQUIRES ${priv_requires}
512
REQUIRES unity
613
WHOLE_ARCHIVE)

0 commit comments

Comments
 (0)