[bsp/phytium] add xhci and pusb2 support with cherryusb port (#8355)

合入基于 CherryUSB 的 XCHI 和 PUSB2 驱动
This commit is contained in:
zhugengyu
2023-12-08 20:01:34 +08:00
committed by GitHub
parent 32342c6995
commit e843561e46
16 changed files with 729 additions and 6 deletions
+16
View File
@@ -141,6 +141,22 @@ path += [cwd + '/port/fboard_port']
src += Glob(cwd+'/port/lwip_port/*.c')
path += [cwd + '/port/lwip_port']
## lwip port
src += Glob(cwd+'/port/lwip_port/*.c')
path += [cwd + '/port/lwip_port']
## cherryusb port
if GetDepend(['BSP_USING_XHCI']):
src += Glob(cwd +'/port/cherryusb_port/drv_xhci.c')
path += [cwd + '/port/cherryusb_port']
if GetDepend(['BSP_USING_PUSB2']):
if GetDepend(['PKG_CHERRYUSB_HOST_PUSB2']):
src += Glob(cwd +'/port/cherryusb_port/drv_pusb2_hc.c')
if GetDepend(['PKG_CHERRYUSB_DEVICE_PUSB2']):
src += Glob(cwd +'/port/cherryusb_port/drv_pusb2_dc.c')
path += [cwd + '/port/cherryusb_port']
# phytium ports rt-thread examples
PORT_DRV_DIR = cwd + '/examples'