2022-03-28 11:14:09 +08:00
|
|
|
import rtconfig
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
# get current directory
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
|
|
|
|
# The set of source files associated with this SConscript file.
|
|
|
|
|
|
|
|
src = Glob('VangoV85xxP_standard_peripheral/Source/*.c')
|
|
|
|
src += [cwd + '/CMSIS/Vango/V85xxP/Source/system_target.c']
|
|
|
|
src += [cwd + '/CMSIS/Vango/V85xxP/Source/lib_CodeRAM.c']
|
|
|
|
src += [cwd + '/CMSIS/Vango/V85xxP/Source/lib_cortex.c']
|
|
|
|
src += [cwd + '/CMSIS/Vango/V85xxP/Source/lib_LoadNVR.c']
|
|
|
|
|
|
|
|
#add for startup script
|
2022-05-31 06:04:05 +08:00
|
|
|
if rtconfig.PLATFORM in ['gcc']:
|
2022-03-28 11:14:09 +08:00
|
|
|
src += [cwd + '/CMSIS/Vango/V85xxP/Source/GCC/startup_target.S']
|
2022-04-20 09:56:04 +08:00
|
|
|
if rtconfig.PLATFORM in ['armcc', 'armclang']:
|
2022-03-28 11:14:09 +08:00
|
|
|
src += [cwd + '/CMSIS/Vango/V85xxP/Source/Keil5/startup_target.S']
|
|
|
|
|
|
|
|
path = [
|
|
|
|
cwd + '/CMSIS/Vango/V85xxP/Include',
|
|
|
|
cwd + '/CMSIS',
|
|
|
|
cwd + '/VangoV85xxP_standard_peripheral/Include',]
|
|
|
|
|
|
|
|
CPPDEFINES = ['USE_STDPERIPH_DRIVER', 'V85XXP','USE_TARGET_DRIVER']
|
|
|
|
|
|
|
|
group = DefineGroup('Vango_Lib', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
|
|
|
|
|
|
|
Return('group')
|