import rtconfig Import('RTT_ROOT') from building import * src_bsp = ['application.c', 'startup.c', 'board.c', 'stm32f10x_it.c'] src_drv = ['rtc.c', 'usart.c', 'serial.c', 'led.c'] if GetDepend('RT_USING_DFS'): if rtconfig.STM32_TYPE == 'STM32F10X_HD': src_drv += ['sdcard.c'] else: src_drv += ['msd.c'] if GetDepend('RT_USING_LWIP'): if rtconfig.STM32_TYPE == 'STM32F10X_CL': src_drv += ['stm32_eth.c'] else: src_drv += ['enc28j60.c'] + ['dm9000a.c'] src = src_bsp + src_drv CPPPATH = [RTT_ROOT + '/bsp/stm32f10x'] CPPDEFINES = [] group = DefineGroup('Startup', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES) Return('group')