diff options
| author | sheltonyu <[email protected]> | 2023-02-25 10:47:04 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-02-24 21:47:04 -0500 |
| commit | a5c62b9a847fb44bb060e475c8473709cb6a2d05 (patch) | |
| tree | e4177db098b97956853fd7ac6d93b26e5be69c23 /bsp/at32/libraries/rt_drivers/SConscript | |
| parent | 7bf66488537c3c8fe89bc74fd32cea23fe44e2f6 (diff) | |
[bsp/at32] add support usb driver (#6968)
* add support usb driver
* fixed code format error
Diffstat (limited to 'bsp/at32/libraries/rt_drivers/SConscript')
| -rw-r--r-- | bsp/at32/libraries/rt_drivers/SConscript | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bsp/at32/libraries/rt_drivers/SConscript b/bsp/at32/libraries/rt_drivers/SConscript index 76a606373d..434174e117 100644 --- a/bsp/at32/libraries/rt_drivers/SConscript +++ b/bsp/at32/libraries/rt_drivers/SConscript @@ -62,6 +62,15 @@ if GetDepend(['BSP_USING_CAN']): if GetDepend(['BSP_USING_SDIO']): src += ['drv_sdio.c'] +if GetDepend(['BSP_USING_USBD']): + src += ['drv_usbd.c'] + +if GetDepend(['BSP_USING_DEVICE_USBFS1']) or GetDepend(['BSP_USING_DEVICE_USBFS2']): + src += ['drv_usbfsd.c'] + +if GetDepend(['BSP_USING_HOST_USBFS1']) or GetDepend(['BSP_USING_HOST_USBFS2']): + src += ['drv_usbfsh.c'] + path = [cwd] path += [cwd + '/config'] |
