mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 19:44:24 +08:00
[bsp/phytium] add xhci and pusb2 support with cherryusb port (#8355)
合入基于 CherryUSB 的 XCHI 和 PUSB2 驱动
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user