summaryrefslogtreecommitdiff
path: root/SConscript
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2021-12-12 21:49:21 +0800
committersakumisu <[email protected]>2021-12-13 15:11:16 +0800
commite0cc3e7f5a327ee08cfb86fe8261d7af73f56f61 (patch)
tree38e3b35447dd4bd874d167c3f2b75e016a64cff8 /SConscript
parent0dd1c3b3fb19b2cddb66d3c3d2f5e461afcf9102 (diff)
update rt-thread readme
Diffstat (limited to 'SConscript')
-rw-r--r--SConscript42
1 files changed, 10 insertions, 32 deletions
diff --git a/SConscript b/SConscript
index 0857de49..2a67cc33 100644
--- a/SConscript
+++ b/SConscript
@@ -7,7 +7,9 @@ src = Glob('core/usbd_core.c')
CPPDEFINES = []
if GetDepend(['PKG_USB_STACK_USING_HS']):
CPPDEFINES+=['CONFIG_USB_HS']
-
+elif GetDepend(['PKG_USB_STACK_USING_HS_IN_FULL']):
+ CPPDEFINES += ['CONFIG_USB_HS_IN_FULL']
+
# USB DEVICE
if GetDepend(['PKG_USB_STACK_USING_DEVICE']):
if GetDepend(['PKG_USB_STACK_USING_CDC']):
@@ -32,37 +34,13 @@ if GetDepend(['PKG_USB_STACK_USING_DEVICE']):
path += [cwd + '/class/msc']
src += Glob('class/cdc/usbd_msc.c')
if GetDepend(['SOC_FAMILY_STM32']):
- if GetDepend(['SOC_SERIES_STM32F0']):
- src += Glob('port/stm32/usb_dc_nohal.c')
- src += Glob('../../../../libraries/STM32F0xx_HAL/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd.c')
- src += Glob('../../../../libraries/STM32F0xx_HAL/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pcd_ex.c')
- src += Glob('../../../../libraries/STM32F0xx_HAL/STM32F0xx_HAL_Driver/Src/stm32f0xx_ll_usb.c')
- CPPDEFINES += ['STM32F0']
- elif GetDepend(['SOC_SERIES_STM32F1']):
- src += Glob('port/stm32/usb_dc_nohal.c')
- src += Glob('../../../../libraries/STM32F1xx_HAL/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pcd.c')
- src += Glob('../../../../libraries/STM32F1xx_HAL/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pcd_ex.c')
- src += Glob('../../../../libraries/STM32F1xx_HAL/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c')
- CPPDEFINES += ['STM32F1']
- elif GetDepend(['SOC_SERIES_STM32F3']):
- src += Glob('port/stm32/usb_dc_nohal.c')
- src += Glob('../../../../libraries/STM32F3xx_HAL/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_pcd.c')
- src += Glob('../../../../libraries/STM32F3xx_HAL/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_pcd_ex.c')
- src += Glob('../../../../libraries/STM32F3xx_HAL/STM32F3xx_HAL_Driver/Src/stm32f3xx_ll_usb.c')
- CPPDEFINES += ['STM32F3']
- elif GetDepend(['SOC_SERIES_STM32F4']):
- src += Glob('port/stm32/usb_dc_hal.c')
- src += Glob('../../../../libraries/STM32F4xx_HAL/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.c')
- src += Glob('../../../../libraries/STM32F4xx_HAL/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.c')
- src += Glob('../../../../libraries/STM32F4xx_HAL/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c')
- CPPDEFINES += ['STM32F4']
- elif GetDepend(['SOC_SERIES_STM32H7']):
- src += Glob('port/stm32/usb_dc_hal.c')
- src += Glob('../../../../libraries/STM32H7xx_HAL/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pcd.c')
- src += Glob('../../../../libraries/STM32H7xx_HAL/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pcd_ex.c')
- src += Glob('../../../../libraries/STM32H7xx_HAL/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_usb.c')
- CPPDEFINES += ['STM32H7']
-
+ if GetDepend(['SOC_SERIES_STM32F0']) or GetDepend(['SOC_SERIES_STM32F1']) or GetDepend(['SOC_SERIES_STM32F3']) or GetDepend(['SOC_SERIES_STM32L0']):
+ src += Glob('port/fsdev/usb_dc_fsdev.c')
+ else:
+ src += Glob('port/synopsys/usb_dc_synopsys.c')
+ if GetDepend(['SOC_SERIES_STM32F0']):
+ CPPDEFINES += ['STM32H7']
+
# USB HOST
if GetDepend(['USB_STACK_USING_HOST']):
pass;