You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
803 B
26 lines
803 B
Import('RTT_ROOT')
|
|
Import('rtconfig')
|
|
from building import *
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
src = ['CM3/DeviceSupport/NXP/LPC17xx/system_LPC17xx.c']
|
|
|
|
# add for startup script
|
|
if rtconfig.PLATFORM in ['gcc']:
|
|
src += ['CM3/DeviceSupport/NXP/LPC17xx/startup/gcc/startup_LPC17xx.s']
|
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
|
src += ['CM3/DeviceSupport/NXP/LPC17xx/startup/arm/startup_LPC17xx.s']
|
|
elif rtconfig.PLATFORM in ['iccarm']:
|
|
src += ['CM3/DeviceSupport/NXP/LPC17xx/startup/iar/startup_LPC17xx.s']
|
|
|
|
CPPPATH = [cwd + '/CM3/DeviceSupport/NXP/LPC17xx/',
|
|
cwd + '/CMSIS/Include']
|
|
|
|
if GetDepend(['RT_USING_BSP_CMSIS']):
|
|
CPPPATH += [cwd + '/CM3/CoreSupport']
|
|
src += ['CM3/CoreSupport/core_cm3.c']
|
|
|
|
group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
Return('group')
|
|
|