rtt-f030/bsp/efm32/SConscript
onelife.real 69ad018bc0 *** EFM32 branch ***
1. Add SD card driver (SPI mode)
2. Add ELM ChaN FatFs support (Please read "Readme.txt")
   - Warning: FatFs is really FAT! (35KB)
3. Upgrade EFM32 libraries (CMSIS and efm32lib) to version 2.0.0
4. Merge all of the C source code in "libcpu\arm\cortex-m3\" into "cpuport.c"
5. Merge all of the assembly source code in "libcpu\arm\cortex-m3\" into "context_gcc.S" (except "start_gcc.S")

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1525 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-06-20 01:56:28 +00:00

24 lines
825 B
Python

import rtconfig
Import('RTT_ROOT')
from building import *
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 = []
src_bsp = ['application.c', 'startup.c', 'board.c']
src_drv1 = ['drv_dma.c', 'drv_rtc.c', 'drv_adc.c', 'drv_acmp.c', 'drv_usart.c', 'drv_iic.c', 'drv_timer.c']
src_drv2 = ['drv_sdcard.c']
src_dev = ['dev_misc.c', 'dev_led.c', 'dev_sflash.c']
src_hdl = ['hdl_interrupt.c']
src = src_kit + src_bsp + src_drv1 + src_drv2 + src_dev + src_hdl
CPPPATH.append(RTT_ROOT + '/bsp/efm32')
CPPDEFINES = ['USE_STDPERIPH_DRIVER', rtconfig.EFM32_BOARD, rtconfig.EFM32_TYPE]
group = DefineGroup('Startup', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
Return('group')