summaryrefslogtreecommitdiff
path: root/components/drivers/usb/cherryusb/SConscript
diff options
context:
space:
mode:
authorhydevcode <[email protected]>2025-01-24 23:12:25 +0800
committerGitHub <[email protected]>2025-01-24 23:12:25 +0800
commit2a18d6873b6f3b22e9900197f2ea480d1e0fa4f4 (patch)
tree773f24d5cad079ea069f0451f7d4a0abd8e8ca17 /components/drivers/usb/cherryusb/SConscript
parent4d4c9660ce9323fef34f3601662c5863cbc1de15 (diff)
[bsp][nrf5x]added the cherryusb adapter for nrf52840 (#9939)
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']):