diff options
| author | lza1205 <[email protected]> | 2021-09-07 10:18:06 +0800 |
|---|---|---|
| committer | lza1205 <[email protected]> | 2021-09-10 12:10:40 +0800 |
| commit | 64c828666d7d9ef2c5c4af09dd2e500cf6799e15 (patch) | |
| tree | 9e0dad95db2f8632dc63c6e02196eb14537dfde8 /bsp/gd32107c-eval/Libraries/SConscript | |
| parent | 9debfd3d9a5eff7bf94227fdde4cc251d620e3f8 (diff) | |
[bsp] add gd32107c-eval first commit
Diffstat (limited to 'bsp/gd32107c-eval/Libraries/SConscript')
| -rw-r--r-- | bsp/gd32107c-eval/Libraries/SConscript | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/bsp/gd32107c-eval/Libraries/SConscript b/bsp/gd32107c-eval/Libraries/SConscript new file mode 100644 index 0000000000..bdfd09f67b --- /dev/null +++ b/bsp/gd32107c-eval/Libraries/SConscript @@ -0,0 +1,33 @@ +import rtconfig +from building import * + +# get current directory +cwd = GetCurrentDir() + +# The set of source files associated with this SConscript file. + +src = Glob('GD32F10x_standard_peripheral/Source/*.c') +src += [cwd + '/CMSIS/GD/GD32F10x/Source/system_gd32f10x.c'] + +#add for startup script +if rtconfig.CROSS_TOOL == 'gcc': + src += [cwd + '/CMSIS/GD/GD32F10x/Source/GCC/startup_gd32f10x_cl.S'] +elif rtconfig.CROSS_TOOL == 'keil': + src += [cwd + '/CMSIS/GD/GD32F10x/Source/ARM/startup_gd32f10x_cl.s'] +elif rtconfig.CROSS_TOOL == 'iar': + src += [cwd + '/CMSIS/GD/GD32F10x/Source/IAR/startup_gd32f10x_cl.s'] + +path = [ + cwd + '/CMSIS/GD/GD32F10x/Include', + cwd + '/CMSIS', + cwd + '/GD32F10x_standard_peripheral/Include',] + +if GetDepend(['RT_USING_BSP_USB']): + path += [cwd + '/GD32F10x_usbfs_driver/Include'] + src += [cwd + '/GD32F10x_usbfs_driver/Source'] + +CPPDEFINES = ['USE_STDPERIPH_DRIVER', 'GD32F10X_CL'] + +group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) + +Return('group') |
