user must define some configs in usb_config.h when use fsdev/musb/dwc2

This commit is contained in:
sakumisu
2023-12-21 20:23:54 +08:00
parent 44e9c1cf4f
commit 8a831cdaa5
9 changed files with 140 additions and 171 deletions

View File

@@ -64,10 +64,6 @@ if GetDepend(['PKG_CHERRYUSB_DEVICE']):
src += Glob('port/dwc2/usb_dc_dwc2.c')
if GetDepend(['PKG_CHERRYUSB_DEVICE_DWC2_STM32']):
src += Glob('port/dwc2/usb_glue_st.c')
if GetDepend(['PKG_CHERRYUSB_DEVICE_DWC2_PORT_FS']):
CPPDEFINES += ['CONFIG_USB_DWC2_PORT=FS_PORT']
elif GetDepend(['PKG_CHERRYUSB_DEVICE_DWC2_PORT_HS']):
CPPDEFINES += ['CONFIG_USB_DWC2_PORT=HS_PORT']
if GetDepend(['PKG_CHERRYUSB_DEVICE_MUSB']):
src += Glob('port/musb/usb_dc_musb.c')