diff options
| author | wuyangyong <[email protected]> | 2011-06-15 02:14:23 +0000 |
|---|---|---|
| committer | wuyangyong <[email protected]> | 2011-06-15 02:14:23 +0000 |
| commit | c283975160b7eff3b3aa0a7f6cfd75a1e182124d (patch) | |
| tree | c60e8f1eaff82f6738ffaec5ca6e92c6788b74b4 /bsp/stm32f10x/SConscript | |
| parent | 421630291413a18356d68df91f62d451711417b4 (diff) | |
move stm3210 to stm32f10x
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1509 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'bsp/stm32f10x/SConscript')
| -rw-r--r-- | bsp/stm32f10x/SConscript | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/bsp/stm32f10x/SConscript b/bsp/stm32f10x/SConscript new file mode 100644 index 0000000000..415bc95572 --- /dev/null +++ b/bsp/stm32f10x/SConscript @@ -0,0 +1,25 @@ +import rtconfig
+Import('RTT_ROOT')
+from building import *
+
+src_bsp = ['application.c', 'startup.c', 'board.c', 'stm32f10x_it.c', 'system_stm32f10x.c']
+src_drv = ['rtc.c', 'usart.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']
+
+src = src_bsp + src_drv
+CPPPATH = [RTT_ROOT + '/bsp/stm3210']
+CPPDEFINES = ['USE_STDPERIPH_DRIVER', rtconfig.STM32_TYPE]
+group = DefineGroup('Startup', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
+
+Return('group')
|
