2013-01-08 22:40:58 +08:00
|
|
|
Import('RTT_ROOT')
|
|
|
|
Import('rtconfig')
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
|
|
|
|
src = ['CM3/DeviceSupport/NXP/LPC17xx/system_LPC17xx.c']
|
|
|
|
|
|
|
|
# add for startup script
|
2022-05-31 06:04:05 +08:00
|
|
|
if rtconfig.PLATFORM in ['gcc']:
|
2013-01-08 22:40:58 +08:00
|
|
|
src += ['CM3/DeviceSupport/NXP/LPC17xx/startup/gcc/startup_LPC17xx.s']
|
2022-04-20 09:56:04 +08:00
|
|
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
2013-01-08 22:40:58 +08:00
|
|
|
src += ['CM3/DeviceSupport/NXP/LPC17xx/startup/arm/startup_LPC17xx.s']
|
2022-05-31 06:11:15 +08:00
|
|
|
elif rtconfig.PLATFORM in ['iccarm']:
|
2013-01-08 22:40:58 +08:00
|
|
|
src += ['CM3/DeviceSupport/NXP/LPC17xx/startup/iar/startup_LPC17xx.s']
|
|
|
|
|
2019-03-26 13:58:33 +08:00
|
|
|
CPPPATH = [cwd + '/CM3/DeviceSupport/NXP/LPC17xx/',
|
|
|
|
cwd + '/CMSIS/Include']
|
2013-01-08 22:40:58 +08:00
|
|
|
|
|
|
|
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')
|