提交 a183f1fb 编写于 作者: wuyangyong's avatar wuyangyong

update stm32f10x project.

上级 8c2a11c2
...@@ -7,6 +7,7 @@ cwd = os.path.join(str(Dir('#')), 'drivers') ...@@ -7,6 +7,7 @@ cwd = os.path.join(str(Dir('#')), 'drivers')
# add the general drvers. # add the general drvers.
src = Split(""" src = Split("""
board.c board.c
stm32f10x_it.c
led.c led.c
serial.c serial.c
usart.c usart.c
......
...@@ -3,75 +3,79 @@ ...@@ -3,75 +3,79 @@
Target (RT-Thread STM32), 0x0004 // Tools: 'ARM-ADS' Target (RT-Thread STM32), 0x0004 // Tools: 'ARM-ADS'
Group (Startup) Group (Applications)
Group (Drivers)
Group (STM32_StdPeriph)
Group (Kernel) Group (Kernel)
Group (CORTEX-M3) Group (CORTEX-M3)
Group (finsh) Group (finsh)
Group (STM32_StdPeriph)
File 1,1,<.\application.c><application.c> File 1,1,<applications\application.c><application.c>
File 1,1,<.\startup.c><startup.c> File 1,1,<applications\startup.c><startup.c>
File 1,1,<.\board.c><board.c> File 2,1,<drivers\board.c><board.c>
File 1,1,<.\stm32f10x_it.c><stm32f10x_it.c> File 2,1,<drivers\stm32f10x_it.c><stm32f10x_it.c>
File 1,1,<.\rtc.c><rtc.c> File 2,1,<drivers\led.c><led.c>
File 1,1,<.\usart.c><usart.c> File 2,1,<drivers\serial.c><serial.c>
File 1,1,<.\serial.c><serial.c> File 2,1,<drivers\usart.c><usart.c>
File 1,1,<.\led.c><led.c> File 3,1,<Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\system_stm32f10x.c><system_stm32f10x.c>
File 2,1,<..\..\src\clock.c><clock.c> File 3,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_crc.c><stm32f10x_crc.c>
File 2,1,<..\..\src\device.c><device.c> File 3,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c><stm32f10x_rcc.c>
File 2,1,<..\..\src\idle.c><idle.c> File 3,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_wwdg.c><stm32f10x_wwdg.c>
File 2,1,<..\..\src\ipc.c><ipc.c> File 3,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_pwr.c><stm32f10x_pwr.c>
File 2,1,<..\..\src\irq.c><irq.c> File 3,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_exti.c><stm32f10x_exti.c>
File 2,1,<..\..\src\kservice.c><kservice.c> File 3,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_bkp.c><stm32f10x_bkp.c>
File 2,1,<..\..\src\mem.c><mem.c> File 3,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_i2c.c><stm32f10x_i2c.c>
File 2,1,<..\..\src\mempool.c><mempool.c> File 3,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_adc.c><stm32f10x_adc.c>
File 2,1,<..\..\src\object.c><object.c> File 3,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_dac.c><stm32f10x_dac.c>
File 2,1,<..\..\src\scheduler.c><scheduler.c> File 3,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_rtc.c><stm32f10x_rtc.c>
File 2,1,<..\..\src\thread.c><thread.c> File 3,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_fsmc.c><stm32f10x_fsmc.c>
File 2,1,<..\..\src\timer.c><timer.c> File 3,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_tim.c><stm32f10x_tim.c>
File 3,1,<..\..\libcpu\arm\cortex-m3\cpuport.c><cpuport.c> File 3,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_iwdg.c><stm32f10x_iwdg.c>
File 3,2,<..\..\libcpu\arm\cortex-m3\context_rvds.S><context_rvds.S> File 3,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_spi.c><stm32f10x_spi.c>
File 3,1,<..\..\libcpu\arm\common\backtrace.c><backtrace.c> File 3,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_flash.c><stm32f10x_flash.c>
File 3,1,<..\..\libcpu\arm\common\div0.c><div0.c> File 3,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_sdio.c><stm32f10x_sdio.c>
File 3,1,<..\..\libcpu\arm\common\showmem.c><showmem.c> File 3,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c><stm32f10x_gpio.c>
File 4,1,<..\..\components\finsh\cmd.c><cmd.c> File 3,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_usart.c><stm32f10x_usart.c>
File 4,1,<..\..\components\finsh\finsh_compiler.c><finsh_compiler.c> File 3,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_dbgmcu.c><stm32f10x_dbgmcu.c>
File 4,1,<..\..\components\finsh\finsh_error.c><finsh_error.c> File 3,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_dma.c><stm32f10x_dma.c>
File 4,1,<..\..\components\finsh\finsh_heap.c><finsh_heap.c> File 3,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_can.c><stm32f10x_can.c>
File 4,1,<..\..\components\finsh\finsh_init.c><finsh_init.c> File 3,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_cec.c><stm32f10x_cec.c>
File 4,1,<..\..\components\finsh\finsh_node.c><finsh_node.c> File 3,1,<Libraries\STM32F10x_StdPeriph_Driver\src\misc.c><misc.c>
File 4,1,<..\..\components\finsh\finsh_ops.c><finsh_ops.c> File 3,2,<Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_hd.s><startup_stm32f10x_hd.s>
File 4,1,<..\..\components\finsh\finsh_parser.c><finsh_parser.c> File 4,1,<..\..\src\clock.c><clock.c>
File 4,1,<..\..\components\finsh\finsh_token.c><finsh_token.c> File 4,1,<..\..\src\device.c><device.c>
File 4,1,<..\..\components\finsh\finsh_var.c><finsh_var.c> File 4,1,<..\..\src\idle.c><idle.c>
File 4,1,<..\..\components\finsh\finsh_vm.c><finsh_vm.c> File 4,1,<..\..\src\ipc.c><ipc.c>
File 4,1,<..\..\components\finsh\shell.c><shell.c> File 4,1,<..\..\src\irq.c><irq.c>
File 4,1,<..\..\components\finsh\symbol.c><symbol.c> File 4,1,<..\..\src\kservice.c><kservice.c>
File 5,1,<Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\system_stm32f10x.c><system_stm32f10x.c> File 4,1,<..\..\src\mem.c><mem.c>
File 5,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_crc.c><stm32f10x_crc.c> File 4,1,<..\..\src\mempool.c><mempool.c>
File 5,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c><stm32f10x_rcc.c> File 4,1,<..\..\src\object.c><object.c>
File 5,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_wwdg.c><stm32f10x_wwdg.c> File 4,1,<..\..\src\scheduler.c><scheduler.c>
File 5,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_pwr.c><stm32f10x_pwr.c> File 4,1,<..\..\src\thread.c><thread.c>
File 5,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_exti.c><stm32f10x_exti.c> File 4,1,<..\..\src\timer.c><timer.c>
File 5,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_bkp.c><stm32f10x_bkp.c> File 5,1,<..\..\libcpu\arm\cortex-m3\cpuport.c><cpuport.c>
File 5,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_i2c.c><stm32f10x_i2c.c> File 5,2,<..\..\libcpu\arm\cortex-m3\context_rvds.S><context_rvds.S>
File 5,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_adc.c><stm32f10x_adc.c> File 5,1,<..\..\libcpu\arm\common\backtrace.c><backtrace.c>
File 5,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_dac.c><stm32f10x_dac.c> File 5,1,<..\..\libcpu\arm\common\div0.c><div0.c>
File 5,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_rtc.c><stm32f10x_rtc.c> File 5,1,<..\..\libcpu\arm\common\showmem.c><showmem.c>
File 5,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_fsmc.c><stm32f10x_fsmc.c> File 6,1,<..\..\components\finsh\cmd.c><cmd.c>
File 5,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_tim.c><stm32f10x_tim.c> File 6,1,<..\..\components\finsh\finsh_compiler.c><finsh_compiler.c>
File 5,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_iwdg.c><stm32f10x_iwdg.c> File 6,1,<..\..\components\finsh\finsh_error.c><finsh_error.c>
File 5,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_spi.c><stm32f10x_spi.c> File 6,1,<..\..\components\finsh\finsh_heap.c><finsh_heap.c>
File 5,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_flash.c><stm32f10x_flash.c> File 6,1,<..\..\components\finsh\finsh_init.c><finsh_init.c>
File 5,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_sdio.c><stm32f10x_sdio.c> File 6,1,<..\..\components\finsh\finsh_node.c><finsh_node.c>
File 5,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c><stm32f10x_gpio.c> File 6,1,<..\..\components\finsh\finsh_ops.c><finsh_ops.c>
File 5,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_usart.c><stm32f10x_usart.c> File 6,1,<..\..\components\finsh\finsh_parser.c><finsh_parser.c>
File 5,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_dbgmcu.c><stm32f10x_dbgmcu.c> File 6,1,<..\..\components\finsh\finsh_token.c><finsh_token.c>
File 5,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_dma.c><stm32f10x_dma.c> File 6,1,<..\..\components\finsh\finsh_var.c><finsh_var.c>
File 5,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_can.c><stm32f10x_can.c> File 6,1,<..\..\components\finsh\finsh_vm.c><finsh_vm.c>
File 5,1,<Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_cec.c><stm32f10x_cec.c> File 6,1,<..\..\components\finsh\msh.c><msh.c>
File 5,1,<Libraries\STM32F10x_StdPeriph_Driver\src\misc.c><misc.c> File 6,1,<..\..\components\finsh\msh_cmd.c><msh_cmd.c>
File 5,2,<Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_hd.s><startup_stm32f10x_hd.s> File 6,1,<..\..\components\finsh\shell.c><shell.c>
File 6,1,<..\..\components\finsh\symbol.c><symbol.c>
Options 1,0,0 // Target 'RT-Thread STM32' Options 1,0,0 // Target 'RT-Thread STM32'
...@@ -132,7 +136,7 @@ Options 1,0,0 // Target 'RT-Thread STM32' ...@@ -132,7 +136,7 @@ Options 1,0,0 // Target 'RT-Thread STM32'
ADSCMISC () ADSCMISC ()
ADSCDEFN (STM32F10X_HD, USE_STDPERIPH_DRIVER) ADSCDEFN (STM32F10X_HD, USE_STDPERIPH_DRIVER)
ADSCUDEF () ADSCUDEF ()
ADSCINCD (Libraries\STM32F10x_StdPeriph_Driver\inc;..\..\components\CMSIS\Include;.;..\..\include;..\..\libcpu\arm\cortex-m3;..\..\libcpu\arm\common;..\..\components\finsh;Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x) ADSCINCD (Libraries\STM32F10x_StdPeriph_Driver\inc;..\..\include;drivers;..\..\components\CMSIS\Include;.;applications;..\..\libcpu\arm\cortex-m3;..\..\libcpu\arm\common;..\..\components\finsh;Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x)
ADSASFLG { 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } ADSASFLG { 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }
ADSAMISC () ADSAMISC ()
ADSADEFN () ADSADEFN ()
......
此差异已折叠。
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0" encoding="iso-8859-1"?>
<workspace> <workspace>
<project> <project>
<path>$WS_DIR$\project.ewp</path> <path>$WS_DIR$\project.ewp</path>
</project> </project>
<batchBuild/> <batchBuild/>
</workspace> </workspace>
此差异已折叠。
...@@ -64,7 +64,9 @@ ...@@ -64,7 +64,9 @@
/* SECTION: Console options */ /* SECTION: Console options */
#define RT_USING_CONSOLE #define RT_USING_CONSOLE
/* the buffer size of console*/ /* the buffer size of console*/
#define RT_CONSOLEBUF_SIZE 128 #define RT_CONSOLEBUF_SIZE 128
// <string name="RT_CONSOLE_DEVICE_NAME" description="The device name for console" default="uart1" />
#define RT_CONSOLE_DEVICE_NAME "uart1"
/* SECTION: finsh, a C-Express shell */ /* SECTION: finsh, a C-Express shell */
#define RT_USING_FINSH #define RT_USING_FINSH
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
<CreateLib>0</CreateLib> <CreateLib>0</CreateLib>
<CreateHexFile>0</CreateHexFile> <CreateHexFile>0</CreateHexFile>
<DebugInformation>1</DebugInformation> <DebugInformation>1</DebugInformation>
<BrowseInformation>1</BrowseInformation> <BrowseInformation>0</BrowseInformation>
<ListingPath>.\build\</ListingPath> <ListingPath>.\build\</ListingPath>
<HexFormatSelection>1</HexFormatSelection> <HexFormatSelection>1</HexFormatSelection>
<Merge32K>0</Merge32K> <Merge32K>0</Merge32K>
...@@ -61,6 +61,8 @@ ...@@ -61,6 +61,8 @@
<UserProg2Name></UserProg2Name> <UserProg2Name></UserProg2Name>
<UserProg1Dos16Mode>0</UserProg1Dos16Mode> <UserProg1Dos16Mode>0</UserProg1Dos16Mode>
<UserProg2Dos16Mode>0</UserProg2Dos16Mode> <UserProg2Dos16Mode>0</UserProg2Dos16Mode>
<nStopU1X>0</nStopU1X>
<nStopU2X>0</nStopU2X>
</BeforeCompile> </BeforeCompile>
<BeforeMake> <BeforeMake>
<RunUserProg1>0</RunUserProg1> <RunUserProg1>0</RunUserProg1>
...@@ -134,6 +136,7 @@ ...@@ -134,6 +136,7 @@
<RestoreMemoryDisplay>1</RestoreMemoryDisplay> <RestoreMemoryDisplay>1</RestoreMemoryDisplay>
<RestoreFunctions>0</RestoreFunctions> <RestoreFunctions>0</RestoreFunctions>
<RestoreToolbox>1</RestoreToolbox> <RestoreToolbox>1</RestoreToolbox>
<RestoreTracepoints>0</RestoreTracepoints>
</Target> </Target>
<RunDebugAfterBuild>0</RunDebugAfterBuild> <RunDebugAfterBuild>0</RunDebugAfterBuild>
<TargetSelection>0</TargetSelection> <TargetSelection>0</TargetSelection>
...@@ -162,6 +165,7 @@ ...@@ -162,6 +165,7 @@
<Capability>1</Capability> <Capability>1</Capability>
<DriverSelection>4096</DriverSelection> <DriverSelection>4096</DriverSelection>
</Flash1> </Flash1>
<bUseTDR>0</bUseTDR>
<Flash2>BIN\UL2CM3.DLL</Flash2> <Flash2>BIN\UL2CM3.DLL</Flash2>
<Flash3>"" ()</Flash3> <Flash3>"" ()</Flash3>
<Flash4></Flash4> <Flash4></Flash4>
...@@ -342,6 +346,7 @@ ...@@ -342,6 +346,7 @@
<Rwpi>0</Rwpi> <Rwpi>0</Rwpi>
<wLevel>0</wLevel> <wLevel>0</wLevel>
<uThumb>0</uThumb> <uThumb>0</uThumb>
<uSurpInc>0</uSurpInc>
<VariousControls> <VariousControls>
<MiscControls></MiscControls> <MiscControls></MiscControls>
<Define></Define> <Define></Define>
...@@ -357,6 +362,7 @@ ...@@ -357,6 +362,7 @@
<SplitLS>0</SplitLS> <SplitLS>0</SplitLS>
<SwStkChk>0</SwStkChk> <SwStkChk>0</SwStkChk>
<NoWarn>0</NoWarn> <NoWarn>0</NoWarn>
<uSurpInc>0</uSurpInc>
<VariousControls> <VariousControls>
<MiscControls></MiscControls> <MiscControls></MiscControls>
<Define></Define> <Define></Define>
...@@ -382,8 +388,6 @@ ...@@ -382,8 +388,6 @@
</LDads> </LDads>
</TargetArmAds> </TargetArmAds>
</TargetOption> </TargetOption>
<Groups>
</Groups>
</Target> </Target>
</Targets> </Targets>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册