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