2012-06-01 15:31:15 +08:00
|
|
|
Import('RTT_ROOT')
|
2011-10-14 01:54:59 +08:00
|
|
|
Import('rtconfig')
|
|
|
|
from building import *
|
|
|
|
|
2012-04-15 14:57:09 +08:00
|
|
|
cwd = GetCurrentDir()
|
2012-06-01 15:31:15 +08:00
|
|
|
|
|
|
|
src = ['CM3/DeviceSupport/NXP/LPC17xx/system_LPC17xx.c']
|
|
|
|
|
2011-10-14 01:54:59 +08:00
|
|
|
# add for startup script
|
|
|
|
if rtconfig.CROSS_TOOL == 'gcc':
|
2012-04-15 14:57:09 +08:00
|
|
|
src += ['CM3/DeviceSupport/NXP/LPC17xx/startup/gcc/startup_LPC17xx.s']
|
2011-10-14 01:54:59 +08:00
|
|
|
elif rtconfig.CROSS_TOOL == 'keil':
|
2012-04-15 14:57:09 +08:00
|
|
|
src += ['CM3/DeviceSupport/NXP/LPC17xx/startup/arm/startup_LPC17xx.s']
|
2011-10-14 01:54:59 +08:00
|
|
|
elif rtconfig.CROSS_TOOL == 'iar':
|
2012-04-15 14:57:09 +08:00
|
|
|
src += ['CM3/DeviceSupport/NXP/LPC17xx/startup/iar/startup_LPC17xx.s']
|
2011-10-14 01:54:59 +08:00
|
|
|
|
2012-06-01 15:31:15 +08:00
|
|
|
CPPPATH = [cwd + '/CM3/DeviceSupport/NXP/LPC17xx/']
|
|
|
|
|
|
|
|
if GetDepend(['RT_USING_BSP_CMSIS']):
|
|
|
|
CPPPATH += [cwd + '/CM3/CoreSupport']
|
|
|
|
src += ['CM3/CoreSupport/core_cm3.c']
|
|
|
|
elif GetDepend(['RT_USING_RTT_CMSIS']):
|
|
|
|
CPPPATH += [RTT_ROOT + '/components/CMSIS/Include']
|
2011-10-14 01:54:59 +08:00
|
|
|
|
|
|
|
group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
|
|
|
|
Return('group')
|