add usb net under idf platform

This commit is contained in:
马龙伟
2025-06-14 15:58:10 +08:00
committed by sakumisu
parent 7f3ddf5d83
commit 8df2be2a52
3 changed files with 414 additions and 2 deletions

View File

@@ -257,7 +257,11 @@ if(CONFIG_CHERRYUSB_HOST)
OR CONFIG_CHERRYUSB_HOST_RTL8152
OR CONFIG_CHERRYUSB_HOST_BL616
)
list(APPEND cherryusb_srcs platform/lwip/usbh_lwip.c)
if("${CONFIG_CHERRYUSB_OSAL}" STREQUAL "idf")
list(APPEND cherryusb_srcs ${CMAKE_CURRENT_LIST_DIR}/platform/idf/usbh_net.c)
else()
list(APPEND cherryusb_srcs ${CMAKE_CURRENT_LIST_DIR}/platform/lwip/usbh_lwip.c)
endif()
endif()
if(CONFIG_CHERRYUSB_HOST_EHCI_BL)