summaryrefslogtreecommitdiff
path: root/components/drivers/usb/cherryusb/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'components/drivers/usb/cherryusb/SConscript')
-rw-r--r--components/drivers/usb/cherryusb/SConscript2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/drivers/usb/cherryusb/SConscript b/components/drivers/usb/cherryusb/SConscript
index 58d0aa01c2..29cbd4ae80 100644
--- a/components/drivers/usb/cherryusb/SConscript
+++ b/components/drivers/usb/cherryusb/SConscript
@@ -28,6 +28,8 @@ if GetDepend(['RT_CHERRYUSB_DEVICE']):
if GetDepend(['RT_CHERRYUSB_DEVICE_SPEED_HS']):
CPPDEFINES+=['CONFIG_USB_HS']
+ if GetDepend(['RT_CHERRYUSB_DEVICE_NRF5X']):
+ src += Glob('port/nrf5x/usb_dc_nrf5x.c')
if GetDepend(['RT_CHERRYUSB_DEVICE_FSDEV']):
src += Glob('port/fsdev/usb_dc_fsdev.c')
if GetDepend(['RT_CHERRYUSB_DEVICE_DWC2_ST']):