| 12345678910111213141516171819202122232425 |
- import rtconfig
- from building import *
- # get current directory
- cwd = GetCurrentDir()
- # The set of source files associated with this SConscript file.
- src = Split('''
- GD/GD32E50x/Source/system_gd32e50x.c
- ''')
- path = [
- cwd + '/GD/GD32E50x/Include',
- cwd,]
- if rtconfig.PLATFORM in ['armcc', 'armclang']:
- src += ['GD/GD32E50x/Source/ARM/startup_gd32e50x_hd.s']
- elif rtconfig.PLATFORM in ['iccarm']:
- src += ['GD/GD32E50x/Source/IAR/startup_gd32e50x_hd.s']
- CPPDEFINES = ['USE_STDPERIPH_DRIVER']
- group = DefineGroup('Libraries', src, depend = ['SOC_SERIES_GD32E50x'], CPPPATH = path, CPPDEFINES = CPPDEFINES)
- Return('group')
|