2021-07-09 11:15:26 +08:00
|
|
|
set(srcs)
|
|
|
|
set(include)
|
|
|
|
set(priv_include)
|
|
|
|
set(priv_require)
|
2021-02-09 10:29:01 +08:00
|
|
|
|
2021-07-09 11:15:26 +08:00
|
|
|
if(CONFIG_USB_OTG_SUPPORTED)
|
2021-08-24 23:20:50 +08:00
|
|
|
list(APPEND srcs "hcd.c"
|
|
|
|
"hub.c"
|
2021-08-31 14:14:04 +08:00
|
|
|
"usb_helpers.c"
|
2021-08-24 23:20:50 +08:00
|
|
|
"usb_host.c"
|
|
|
|
"usb_private.c"
|
2021-08-19 20:28:28 +08:00
|
|
|
"usbh.c"
|
|
|
|
"usb_phy.c")
|
2021-08-24 23:20:50 +08:00
|
|
|
list(APPEND include "include")
|
2021-07-09 11:15:26 +08:00
|
|
|
list(APPEND priv_include "private_include")
|
|
|
|
list(APPEND priv_require "hal" "driver")
|
2021-02-09 10:29:01 +08:00
|
|
|
endif()
|
|
|
|
|
2021-07-09 11:15:26 +08:00
|
|
|
idf_component_register(SRCS ${srcs}
|
|
|
|
INCLUDE_DIRS ${include}
|
|
|
|
PRIV_INCLUDE_DIRS ${priv_include}
|
|
|
|
PRIV_REQUIRES ${priv_require}
|
|
|
|
)
|