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