2010-04-19 16:23:21 +08:00
|
|
|
Import('env')
|
|
|
|
Import('projects')
|
|
|
|
Import('RTT_ROOT')
|
|
|
|
Import('rtconfig')
|
|
|
|
|
|
|
|
# group definitions
|
|
|
|
group = {}
|
|
|
|
group['name'] = 'Startup'
|
|
|
|
group['CCFLAGS'] = ''
|
2010-05-02 19:40:26 +08:00
|
|
|
group['CPPPATH'] = [ RTT_ROOT + '/bsp/lpc176x/CMSIS/CM3/CoreSupport', RTT_ROOT + '/bsp/lpc176x/CMSIS/CM3/DeviceSupport/NXP/LPC17xx',RTT_ROOT + '/bsp/lpc176x']
|
2010-04-19 16:23:21 +08:00
|
|
|
group['CPPDEFINES'] = []
|
|
|
|
group['LINKFLAGS'] = ''
|
|
|
|
|
|
|
|
src_bsp = ['application.c', 'startup.c', 'board.c']
|
2010-05-24 16:39:03 +08:00
|
|
|
src_drv = ['uart.c', 'led.c']
|
2010-05-02 19:40:26 +08:00
|
|
|
src_cmsis = ['CMSIS/CM3/CoreSupport/core_cm3.c', 'CMSIS/CM3/DeviceSupport/NXP/LPC17xx/system_LPC17xx.c']
|
2010-04-19 16:23:21 +08:00
|
|
|
|
2010-05-24 16:39:03 +08:00
|
|
|
if rtconfig.RT_USING_DFS:
|
|
|
|
src_drv += ['sd.c', 'spi.c']
|
|
|
|
|
2010-04-19 16:23:21 +08:00
|
|
|
group['src'] = File(src_bsp + src_drv + src_cmsis)
|
|
|
|
|
|
|
|
# add group to project list
|
|
|
|
projects.append(group)
|
|
|
|
|
|
|
|
env.Append(CCFLAGS = group['CCFLAGS'])
|
|
|
|
env.Append(CPPPATH = group['CPPPATH'])
|
|
|
|
env.Append(CPPDEFINES = group['CPPDEFINES'])
|
|
|
|
env.Append(LINKFLAGS = group['LINKFLAGS'])
|
|
|
|
|
|
|
|
obj = env.Object(group['src'])
|
|
|
|
|
|
|
|
Return('obj')
|