mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-15 14:36:16 +08:00
3c3b3697ad
1. Upgrade EFM32 driver libraries (CMSIS and efm32lib) to version 2.3.0 (from version 2.2.2) 2. Add EFM32GG-DK3750 development kit support (driver version 1.2.1) 3. Add giant gecko (EFM32GG) support 4. Add LEUART module driver (max 9600bsp) git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1839 bbd45198-f89e-11dd-88c7-29a3b14d5316
30 lines
1.1 KiB
Python
30 lines
1.1 KiB
Python
import rtconfig
|
|
Import('RTT_ROOT')
|
|
from building import *
|
|
|
|
if rtconfig.EFM32_BOARD == 'EFM32_GXXX_DK':
|
|
src_kit = Glob('EFM32_Gxxx_DK/*.c')
|
|
CPPPATH = [RTT_ROOT + '/bsp/efm32/EFM32_Gxxx_DK']
|
|
elif rtconfig.EFM32_BOARD == 'EFM32GG_DK3750':
|
|
src_kit = Glob('EFM32GG_DK3750/*.c')
|
|
CPPPATH = [RTT_ROOT + '/bsp/efm32/EFM32GG_DK3750']
|
|
else:
|
|
src_kit = []
|
|
CPPPATH = []
|
|
|
|
src_bsp = ['application.c', 'startup.c', 'board.c']
|
|
if rtconfig.PLATFORM == 'gcc':
|
|
src_bsp.append('start_gcc.S')
|
|
src_drv1 = ['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']
|
|
src_hdl = ['hdl_interrupt.c']
|
|
src_app = ['httpd.c']
|
|
|
|
src = src_kit + src_bsp + src_drv1 + src_drv2 + src_dev + src_hdl + src_app
|
|
CPPPATH.append(RTT_ROOT + '/bsp/efm32')
|
|
CPPDEFINES = [rtconfig.EFM32_BOARD, rtconfig.EFM32_TYPE]
|
|
group = DefineGroup('Startup', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
|
|
|
|
Return('group')
|