2011-02-17 11:33:15 +08:00
|
|
|
import rtconfig
|
|
|
|
Import('RTT_ROOT')
|
|
|
|
from building import *
|
|
|
|
|
2011-05-12 15:19:37 +08:00
|
|
|
if rtconfig.EFM32_BOARD == 'EFM32_G290_DK':
|
|
|
|
src_kit = Glob('EFM32_Gxxx_DK/*.c')
|
|
|
|
CPPPATH = [RTT_ROOT + '/bsp/efm32/EFM32_Gxxx_DK']
|
|
|
|
else:
|
|
|
|
src_kit = []
|
|
|
|
CPPPATH = []
|
|
|
|
|
2011-02-17 11:33:15 +08:00
|
|
|
src_bsp = ['application.c', 'startup.c', 'board.c']
|
2011-11-29 17:15:10 +08:00
|
|
|
if rtconfig.PLATFORM == 'gcc':
|
|
|
|
src_bsp.append('start_gcc.S')
|
2011-06-20 09:56:28 +08:00
|
|
|
src_drv1 = ['drv_dma.c', 'drv_rtc.c', 'drv_adc.c', 'drv_acmp.c', 'drv_usart.c', 'drv_iic.c', 'drv_timer.c']
|
2011-07-08 15:13:20 +08:00
|
|
|
src_drv2 = ['drv_sdcard.c', 'drv_ethernet.c']
|
2011-07-29 10:47:37 +08:00
|
|
|
src_dev = ['dev_misc.c', 'dev_led.c', 'dev_accel.c', 'dev_sflash.c']
|
2011-02-17 11:33:15 +08:00
|
|
|
src_hdl = ['hdl_interrupt.c']
|
2011-07-08 15:13:20 +08:00
|
|
|
src_app = ['httpd.c']
|
2011-02-17 11:33:15 +08:00
|
|
|
|
2011-07-08 15:13:20 +08:00
|
|
|
src = src_kit + src_bsp + src_drv1 + src_drv2 + src_dev + src_hdl + src_app
|
2011-05-12 15:19:37 +08:00
|
|
|
CPPPATH.append(RTT_ROOT + '/bsp/efm32')
|
2011-11-29 17:15:10 +08:00
|
|
|
CPPDEFINES = [rtconfig.EFM32_BOARD, rtconfig.EFM32_TYPE]
|
2011-02-17 11:33:15 +08:00
|
|
|
group = DefineGroup('Startup', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
|
|
|
|
|
|
|
|
Return('group')
|