summaryrefslogtreecommitdiff
path: root/bsp/gd32e230k-start/Libraries/SConscript
diff options
context:
space:
mode:
authorxuzhuoyi <[email protected]>2019-03-31 21:17:55 +0800
committerxuzhuoyi <[email protected]>2019-03-31 21:17:55 +0800
commit5a460aadcd1df4fcfb14aafeb248230a47e9cbeb (patch)
tree24a337e1683bc84161476b8c089535424f6e2690 /bsp/gd32e230k-start/Libraries/SConscript
parent5d166c389d6c81fbeea3e175100d4922453991ee (diff)
[bsp][gd32e230k-start] Update Sconscript
Diffstat (limited to 'bsp/gd32e230k-start/Libraries/SConscript')
-rw-r--r--bsp/gd32e230k-start/Libraries/SConscript22
1 files changed, 8 insertions, 14 deletions
diff --git a/bsp/gd32e230k-start/Libraries/SConscript b/bsp/gd32e230k-start/Libraries/SConscript
index eb4cfb77c7..e79dc34216 100644
--- a/bsp/gd32e230k-start/Libraries/SConscript
+++ b/bsp/gd32e230k-start/Libraries/SConscript
@@ -6,27 +6,21 @@ cwd = GetCurrentDir()
# The set of source files associated with this SConscript file.
-src = Glob('GD32F30x_standard_peripheral/Source/*.c')
-src += [cwd + '/CMSIS/GD/GD32F30x/Source/system_gd32f30x.c']
+src = Glob('GD32E230_standard_peripheral/Source/*.c')
+src += [cwd + '/CMSIS/GD/GD32E230/Source/system_gd32e230.c']
#add for startup script
-if rtconfig.CROSS_TOOL == 'gcc':
- src += [cwd + '/CMSIS/GD/GD32F30x/Source/GCC/startup_gd32f30x_hd.s']
-elif rtconfig.CROSS_TOOL == 'keil':
- src += [cwd + '/CMSIS/GD/GD32F30x/Source/ARM/startup_gd32f30x_hd.s']
+if rtconfig.CROSS_TOOL == 'keil':
+ src += [cwd + '/CMSIS/GD/GD32E230/Source/ARM/startup_gd32e230.s']
elif rtconfig.CROSS_TOOL == 'iar':
- src += [cwd + '/CMSIS/GD/GD32F30x/Source/IAR/startup_gd32f30x_hd.s']
+ src += [cwd + '/CMSIS/GD/GD32E230/Source/IAR/startup_gd32e230.s']
path = [
- cwd + '/CMSIS/GD/GD32F30x/Include',
+ cwd + '/CMSIS/GD/GD32E230/Include',
cwd + '/CMSIS',
- cwd + '/GD32F30x_standard_peripheral/Include',]
-
-if GetDepend(['RT_USING_BSP_USB']):
- path += [cwd + '/GD32F30x_usb_driver/Include']
- src += [cwd + '/GD32F30x_usb_driver/Source']
+ cwd + '/GD32E230_standard_peripheral/Include',]
-CPPDEFINES = ['USE_STDPERIPH_DRIVER', 'GD32F30X_HD']
+CPPDEFINES = ['GD32E230']
group = DefineGroup('GD32_Lib', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)