Skip to content

Commit 863b8f5

Browse files
fix(esp_tinyusb_test): Access USB Phy for IDF 6.0
1 parent 2863968 commit 863b8f5

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 is used only to use USB PHY api
2+
# 2. in IDF >= 6, the USB PHY was removed from USB component
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)