2009-10-22 07:51:32 +08:00
|
|
|
Import('env')
|
|
|
|
Import('RTT_ROOT')
|
2010-04-19 06:16:50 +08:00
|
|
|
Import('projects')
|
2009-10-22 07:51:32 +08:00
|
|
|
|
|
|
|
# The set of source files associated with this SConscript file.
|
|
|
|
src_local = Split("""
|
|
|
|
CMSIS/Core/CM3/core_cm3.c
|
|
|
|
CMSIS/Core/CM3/system_stm32f10x.c
|
|
|
|
STM32F10x_StdPeriph_Driver/src/stm32f10x_crc.c
|
|
|
|
STM32F10x_StdPeriph_Driver/src/stm32f10x_rcc.c
|
|
|
|
STM32F10x_StdPeriph_Driver/src/stm32f10x_wwdg.c
|
|
|
|
STM32F10x_StdPeriph_Driver/src/stm32f10x_pwr.c
|
|
|
|
STM32F10x_StdPeriph_Driver/src/stm32f10x_exti.c
|
|
|
|
STM32F10x_StdPeriph_Driver/src/stm32f10x_bkp.c
|
|
|
|
STM32F10x_StdPeriph_Driver/src/stm32f10x_i2c.c
|
|
|
|
STM32F10x_StdPeriph_Driver/src/stm32f10x_adc.c
|
|
|
|
STM32F10x_StdPeriph_Driver/src/stm32f10x_dac.c
|
|
|
|
STM32F10x_StdPeriph_Driver/src/stm32f10x_rtc.c
|
|
|
|
STM32F10x_StdPeriph_Driver/src/stm32f10x_fsmc.c
|
|
|
|
STM32F10x_StdPeriph_Driver/src/stm32f10x_tim.c
|
|
|
|
STM32F10x_StdPeriph_Driver/src/stm32f10x_iwdg.c
|
|
|
|
STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c
|
|
|
|
STM32F10x_StdPeriph_Driver/src/stm32f10x_flash.c
|
|
|
|
STM32F10x_StdPeriph_Driver/src/stm32f10x_sdio.c
|
|
|
|
STM32F10x_StdPeriph_Driver/src/stm32f10x_gpio.c
|
|
|
|
STM32F10x_StdPeriph_Driver/src/stm32f10x_usart.c
|
|
|
|
STM32F10x_StdPeriph_Driver/src/stm32f10x_dbgmcu.c
|
|
|
|
STM32F10x_StdPeriph_Driver/src/stm32f10x_dma.c
|
|
|
|
STM32F10x_StdPeriph_Driver/src/stm32f10x_can.c
|
|
|
|
STM32F10x_StdPeriph_Driver/src/misc.c
|
|
|
|
""")
|
|
|
|
|
2010-04-19 06:16:50 +08:00
|
|
|
path = [RTT_ROOT + '/bsp/stm3210/Libraries/STM32F10x_StdPeriph_Driver/inc',
|
|
|
|
RTT_ROOT + '/bsp/stm3210/Libraries/CMSIS/Core/CM3']
|
|
|
|
|
|
|
|
# group definitions
|
|
|
|
group = {}
|
|
|
|
group['name'] = 'STM32_StdPeriph'
|
|
|
|
group['CCFLAGS'] = ''
|
|
|
|
group['CPPPATH'] = path
|
|
|
|
group['CPPDEFINES'] = []
|
|
|
|
group['LINKFLAGS'] = ''
|
|
|
|
group['src'] = File(src_local)
|
|
|
|
|
|
|
|
# add group to project list
|
|
|
|
projects.append(group)
|
2009-10-22 07:51:32 +08:00
|
|
|
|
|
|
|
env.Append(CPPPATH = path)
|
|
|
|
|
|
|
|
obj = env.Object(src_local)
|
|
|
|
|
|
|
|
Return('obj')
|