2010-11-20 20:31:00 +08:00
|
|
|
import rtconfig
|
2009-10-22 07:51:32 +08:00
|
|
|
Import('RTT_ROOT')
|
2010-11-20 20:31:00 +08:00
|
|
|
from building import *
|
2009-10-22 07:51:32 +08:00
|
|
|
|
|
|
|
# The set of source files associated with this SConscript file.
|
2010-11-20 20:31:00 +08:00
|
|
|
src = Split("""
|
2009-10-22 07:51:32 +08:00
|
|
|
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']
|
|
|
|
|
2010-11-20 20:31:00 +08:00
|
|
|
CPPDEFINES = ['USE_STDPERIPH_DRIVER', rtconfig.STM32_TYPE]
|
|
|
|
group = DefineGroup('STM32_StdPeriph', src, depend = [''], CPPPATH = path)
|
2010-04-19 06:16:50 +08:00
|
|
|
|
2010-11-20 20:31:00 +08:00
|
|
|
Return('group')
|