rt-thread-official/bsp/efm32/SConscript

20 lines
779 B
Python
Raw Permalink Normal View History

2013-01-08 22:40:58 +08:00
import rtconfig
Import('RTT_ROOT')
from building import *
src_bsp = ['application.c', 'startup.c', 'board.c']
if rtconfig.PLATFORM in ['gcc']:
2013-01-08 22:40:58 +08:00
src_bsp.append('start_gcc.S')
src_drv1 = ['drv_emu.c', 'drv_dma.c', 'drv_rtc.c', 'drv_adc.c', 'drv_acmp.c', 'drv_usart.c', 'drv_leuart.c', 'drv_iic.c', 'drv_timer.c']
src_drv2 = ['drv_sdcard.c', 'drv_ethernet.c']
src_dev = ['dev_misc.c', 'dev_led.c', 'dev_accel.c', 'dev_sflash.c', 'dev_lcd.c', 'dev_keys.c']
src_hdl = ['hdl_interrupt.c']
src_app = ['httpd.c']
src = src_bsp + src_drv1 + src_drv2 + src_dev + src_hdl + src_app
CPPPATH = [RTT_ROOT + '/bsp/efm32']
2017-03-16 11:29:29 +08:00
CPPDEFINES = [rtconfig.EFM32_LCD, rtconfig.EFM32_TYPE]
2013-01-08 22:40:58 +08:00
group = DefineGroup('Startup', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
Return('group')