From 9f053f46e370b30b4d8242682670d2e20bab5212 Mon Sep 17 00:00:00 2001 From: dzzxzz Date: Fri, 23 Sep 2011 04:55:00 +0000 Subject: [PATCH] fixed compiling error in stm32f20x branch git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1720 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- bsp/stm32f20x/SConscript | 2 +- bsp/stm32f20x/project.ewp | 289 +++++++++++++++++++---------------- bsp/stm32f20x/project.uvopt | 107 +++++++++++-- bsp/stm32f20x/project.uvproj | 27 +++- 4 files changed, 276 insertions(+), 149 deletions(-) diff --git a/bsp/stm32f20x/SConscript b/bsp/stm32f20x/SConscript index e99c60b27c..f8813e8bab 100644 --- a/bsp/stm32f20x/SConscript +++ b/bsp/stm32f20x/SConscript @@ -3,7 +3,7 @@ Import('RTT_ROOT') from building import * src_bsp = ['application.c', 'startup.c', 'board.c', 'stm32f20x_it.c'] -src_drv = ['usart.c', 'serial.c'] +src_drv = ['usart.c', 'serial.c', 'rtc.c'] src = src_bsp + src_drv CPPPATH = [GetCurrentDir()] diff --git a/bsp/stm32f20x/project.ewp b/bsp/stm32f20x/project.ewp index 0150e99018..42c6f64c9f 100644 --- a/bsp/stm32f20x/project.ewp +++ b/bsp/stm32f20x/project.ewp @@ -1,3 +1,5 @@ + + 2 @@ -10,7 +12,7 @@ General 3 - 18 + 20 1 1 + + @@ -144,7 +156,7 @@ 1 @@ -553,7 +565,7 @@ @@ -875,7 +887,7 @@ General 3 - 18 + 20 1 0 + + @@ -1050,19 +1072,19 @@ @@ -1418,7 +1440,7 @@ - Startup + finsh - $PROJ_DIR$\.\application.c + $PROJ_DIR$\..\..\components\finsh\cmd.c - $PROJ_DIR$\.\startup.c + $PROJ_DIR$\..\..\components\finsh\finsh_compiler.c - $PROJ_DIR$\.\board.c + $PROJ_DIR$\..\..\components\finsh\finsh_error.c - $PROJ_DIR$\.\stm32f20x_it.c + $PROJ_DIR$\..\..\components\finsh\finsh_heap.c - $PROJ_DIR$\.\usart.c + $PROJ_DIR$\..\..\components\finsh\finsh_init.c - $PROJ_DIR$\.\serial.c + $PROJ_DIR$\..\..\components\finsh\finsh_node.c + + + $PROJ_DIR$\..\..\components\finsh\finsh_ops.c + + + $PROJ_DIR$\..\..\components\finsh\finsh_parser.c + + + $PROJ_DIR$\..\..\components\finsh\finsh_token.c + + + $PROJ_DIR$\..\..\components\finsh\finsh_var.c + + + $PROJ_DIR$\..\..\components\finsh\finsh_vm.c + + + $PROJ_DIR$\..\..\components\finsh\shell.c + + + $PROJ_DIR$\..\..\components\finsh\symbol.c @@ -1800,63 +1843,45 @@ - STM32 - - $PROJ_DIR$\..\..\libcpu\arm\stm32\cpuport.c - - - $PROJ_DIR$\..\..\libcpu\arm\stm32\context_iar.S - - - $PROJ_DIR$\..\..\libcpu\arm\common\backtrace.c - - - $PROJ_DIR$\..\..\libcpu\arm\common\div0.c - - - $PROJ_DIR$\..\..\libcpu\arm\common\showmem.c - - - - finsh - - $PROJ_DIR$\..\..\components\finsh\cmd.c - + Startup - $PROJ_DIR$\..\..\components\finsh\finsh_compiler.c + $PROJ_DIR$\.\application.c - $PROJ_DIR$\..\..\components\finsh\finsh_error.c + $PROJ_DIR$\.\board.c - $PROJ_DIR$\..\..\components\finsh\finsh_heap.c + $PROJ_DIR$\rtc.c - $PROJ_DIR$\..\..\components\finsh\finsh_init.c + $PROJ_DIR$\.\serial.c - $PROJ_DIR$\..\..\components\finsh\finsh_node.c + $PROJ_DIR$\.\startup.c - $PROJ_DIR$\..\..\components\finsh\finsh_ops.c + $PROJ_DIR$\.\stm32f20x_it.c - $PROJ_DIR$\..\..\components\finsh\finsh_parser.c + $PROJ_DIR$\.\usart.c + + + STM32 - $PROJ_DIR$\..\..\components\finsh\finsh_token.c + $PROJ_DIR$\..\..\libcpu\arm\common\backtrace.c - $PROJ_DIR$\..\..\components\finsh\finsh_var.c + $PROJ_DIR$\..\..\libcpu\arm\stm32\context_iar.S - $PROJ_DIR$\..\..\components\finsh\finsh_vm.c + $PROJ_DIR$\..\..\libcpu\arm\stm32\cpuport.c - $PROJ_DIR$\..\..\components\finsh\shell.c + $PROJ_DIR$\..\..\libcpu\arm\common\div0.c - $PROJ_DIR$\..\..\components\finsh\symbol.c + $PROJ_DIR$\..\..\libcpu\arm\common\showmem.c @@ -1865,10 +1890,10 @@ $PROJ_DIR$\Libraries\CMSIS\CM3\CoreSupport\core_cm3.c - $PROJ_DIR$\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F2xx\system_stm32f2xx.c + $PROJ_DIR$\Libraries\STM32F2xx_StdPeriph_Driver\src\misc.c - $PROJ_DIR$\Libraries\STM32F2xx_StdPeriph_Driver\src\misc.c + $PROJ_DIR$\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F2xx\startup\iar\startup_stm32f2xx.s $PROJ_DIR$\Libraries\STM32F2xx_StdPeriph_Driver\src\stm32f2xx_adc.c @@ -1961,7 +1986,9 @@ $PROJ_DIR$\Libraries\STM32F2xx_StdPeriph_Driver\src\stm32f2xx_wwdg.c - $PROJ_DIR$\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F2xx\startup\iar\startup_stm32f2xx.s + $PROJ_DIR$\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F2xx\system_stm32f2xx.c + + diff --git a/bsp/stm32f20x/project.uvopt b/bsp/stm32f20x/project.uvopt index 0ee2f6284b..ad581f1648 100644 --- a/bsp/stm32f20x/project.uvopt +++ b/bsp/stm32f20x/project.uvopt @@ -181,7 +181,7 @@ 0 50 0 - 3 + 25 26 0 .\application.c @@ -195,8 +195,8 @@ 0 0 0 - 0 - 0 + 102 + 108 0 .\startup.c startup.c @@ -223,7 +223,7 @@ 0 0 0 - 80 + 79 80 0 .\stm32f20x_it.c @@ -277,10 +277,10 @@ 1 0 0 - 0 + 27 0 - 0 - 0 + 1 + 15 0 .\sdio_sd.c sdio_sd.c @@ -1253,18 +1253,81 @@ + + dfs + 0 + 0 + 0 + + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\dfs\src\dfs.c + dfs.c + + + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\dfs\src\dfs_file.c + dfs_file.c + + + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\dfs\src\dfs_fs.c + dfs_fs.c + + + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\components\dfs\src\dfs_posix.c + dfs_posix.c + + + 1 0 100 - 2 + 3 - .\stm32f20x_it.c - 0 - 80 - 80 + .\application.c + 50 + 25 + 26 .\board.c @@ -1273,10 +1336,22 @@ 65 - .\application.c - 50 - 3 - 26 + .\stm32f20x_it.c + 0 + 79 + 80 + + + .\sdio_sd.c + 27 + 1 + 15 + + + .\startup.c + 0 + 102 + 108 diff --git a/bsp/stm32f20x/project.uvproj b/bsp/stm32f20x/project.uvproj index 9c5a59ebc9..c8b67237d1 100644 --- a/bsp/stm32f20x/project.uvproj +++ b/bsp/stm32f20x/project.uvproj @@ -346,7 +346,7 @@ USE_STDPERIPH_DRIVER - ..\..\components\finsh;.;..\..\include;Libraries\CMSIS\CM3\CoreSupport;Libraries\STM32F2xx_StdPeriph_Driver\inc;..\..\libcpu\arm\common;..\..\libcpu\arm\stm32;Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F2xx + ..\..\components\finsh;.;..\..\include;Libraries\CMSIS\CM3\CoreSupport;Libraries\STM32F2xx_StdPeriph_Driver\inc;..\..\libcpu\arm\common;..\..\libcpu\arm\stm32;Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F2xx;..\..\components\dfs\include @@ -783,6 +783,31 @@ + + dfs + + + dfs.c + 1 + ..\..\components\dfs\src\dfs.c + + + dfs_file.c + 1 + ..\..\components\dfs\src\dfs_file.c + + + dfs_fs.c + 1 + ..\..\components\dfs\src\dfs_fs.c + + + dfs_posix.c + 1 + ..\..\components\dfs\src\dfs_posix.c + + + -- GitLab