diff --git a/bsp/stm32f0x/project.uvopt b/bsp/stm32f0x/project.uvopt
index 25161a3a8c87e40dbc2f1da9492c2ba60b3dd896..6abc948d0ad53e7903ade1cdf65fc0347222fedf 100644
--- a/bsp/stm32f0x/project.uvopt
+++ b/bsp/stm32f0x/project.uvopt
@@ -27,7 +27,7 @@
8000000
- 1
+ 0
1
1
0
@@ -103,6 +103,7 @@
1
0
1
+ 0
0
0
13
@@ -118,38 +119,19 @@
STLink\ST-LINKIII-KEIL_SWO.dll
-
-
- 0
- DLGTARM
- (1010=75,103,441,526,0)(1007=105,136,282,346,0)(1008=90,120,456,345,0)
-
-
- 0
- ARMDBGFLAGS
-
-
-
- 0
- DLGUARM
- (105=-1,-1,-1,-1,0)(106=-1,-1,-1,-1,0)(107=-1,-1,-1,-1,0)
-
-
- 0
- ST-LINKIII-KEIL_SWO
- -U-O206 -O206 -S3 -C0 -N00("ARM CoreSight SW-DP") -D00(0BB11477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8004 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO3 -FD20000000 -FC800 -FN1 -FF0STM32F05x_64 -FS08000000 -FL010000
-
-
+
+ 0
+
0
0
- 1
+ 0
0
0
0
0
- 1
+ 0
0
0
0
@@ -173,23 +155,26 @@
- Applications
+ STM32_StdPeriph
0
0
0
+ 0
1
1
1
0
0
- 49
+ 0
0
- 2
- 4
+ 0
+ 0
0
- applications\application.c
- application.c
+ Libraries\CMSIS\ST\STM32F0xx\Source\Templates\system_stm32f0xx.c
+ system_stm32f0xx.c
+ 0
+ 0
1
@@ -199,21 +184,16 @@
0
0
0
- 97
- 115
+ 0
+ 0
0
- applications\startup.c
- startup.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_adc.c
+ stm32f0xx_adc.c
+ 0
+ 0
-
-
-
- Drivers
- 0
- 0
- 0
- 2
+ 1
3
1
0
@@ -223,11 +203,13 @@
0
0
0
- drivers\board.c
- board.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_cec.c
+ stm32f0xx_cec.c
+ 0
+ 0
- 2
+ 1
4
1
0
@@ -237,18 +219,13 @@
0
0
0
- drivers\stm32f0xx_it.c
- stm32f0xx_it.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_comp.c
+ stm32f0xx_comp.c
+ 0
+ 0
-
-
-
- STM32_StdPeriph
- 0
- 0
- 0
- 3
+ 1
5
1
0
@@ -258,11 +235,13 @@
0
0
0
- Libraries\CMSIS\ST\STM32F0xx\Source\Templates\system_stm32f0xx.c
- system_stm32f0xx.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_crc.c
+ stm32f0xx_crc.c
+ 0
+ 0
- 3
+ 1
6
1
0
@@ -272,11 +251,13 @@
0
0
0
- Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_adc.c
- stm32f0xx_adc.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_dac.c
+ stm32f0xx_dac.c
+ 0
+ 0
- 3
+ 1
7
1
0
@@ -286,11 +267,13 @@
0
0
0
- Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_cec.c
- stm32f0xx_cec.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_dbgmcu.c
+ stm32f0xx_dbgmcu.c
+ 0
+ 0
- 3
+ 1
8
1
0
@@ -300,11 +283,13 @@
0
0
0
- Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_comp.c
- stm32f0xx_comp.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_dma.c
+ stm32f0xx_dma.c
+ 0
+ 0
- 3
+ 1
9
1
0
@@ -314,11 +299,13 @@
0
0
0
- Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_crc.c
- stm32f0xx_crc.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_exti.c
+ stm32f0xx_exti.c
+ 0
+ 0
- 3
+ 1
10
1
0
@@ -328,11 +315,13 @@
0
0
0
- Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_dac.c
- stm32f0xx_dac.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_flash.c
+ stm32f0xx_flash.c
+ 0
+ 0
- 3
+ 1
11
1
0
@@ -342,11 +331,13 @@
0
0
0
- Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_dbgmcu.c
- stm32f0xx_dbgmcu.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_gpio.c
+ stm32f0xx_gpio.c
+ 0
+ 0
- 3
+ 1
12
1
0
@@ -356,11 +347,13 @@
0
0
0
- Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_dma.c
- stm32f0xx_dma.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_i2c.c
+ stm32f0xx_i2c.c
+ 0
+ 0
- 3
+ 1
13
1
0
@@ -370,11 +363,13 @@
0
0
0
- Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_exti.c
- stm32f0xx_exti.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_iwdg.c
+ stm32f0xx_iwdg.c
+ 0
+ 0
- 3
+ 1
14
1
0
@@ -384,11 +379,13 @@
0
0
0
- Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_flash.c
- stm32f0xx_flash.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_misc.c
+ stm32f0xx_misc.c
+ 0
+ 0
- 3
+ 1
15
1
0
@@ -398,11 +395,13 @@
0
0
0
- Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_gpio.c
- stm32f0xx_gpio.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_pwr.c
+ stm32f0xx_pwr.c
+ 0
+ 0
- 3
+ 1
16
1
0
@@ -412,11 +411,13 @@
0
0
0
- Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_i2c.c
- stm32f0xx_i2c.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_rcc.c
+ stm32f0xx_rcc.c
+ 0
+ 0
- 3
+ 1
17
1
0
@@ -426,11 +427,13 @@
0
0
0
- Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_iwdg.c
- stm32f0xx_iwdg.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_rtc.c
+ stm32f0xx_rtc.c
+ 0
+ 0
- 3
+ 1
18
1
0
@@ -440,11 +443,13 @@
0
0
0
- Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_misc.c
- stm32f0xx_misc.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_spi.c
+ stm32f0xx_spi.c
+ 0
+ 0
- 3
+ 1
19
1
0
@@ -454,11 +459,13 @@
0
0
0
- Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_pwr.c
- stm32f0xx_pwr.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_syscfg.c
+ stm32f0xx_syscfg.c
+ 0
+ 0
- 3
+ 1
20
1
0
@@ -468,11 +475,13 @@
0
0
0
- Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_rcc.c
- stm32f0xx_rcc.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_tim.c
+ stm32f0xx_tim.c
+ 0
+ 0
- 3
+ 1
21
1
0
@@ -482,11 +491,13 @@
0
0
0
- Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_rtc.c
- stm32f0xx_rtc.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_usart.c
+ stm32f0xx_usart.c
+ 0
+ 0
- 3
+ 1
22
1
0
@@ -496,13 +507,15 @@
0
0
0
- Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_spi.c
- stm32f0xx_spi.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_wwdg.c
+ stm32f0xx_wwdg.c
+ 0
+ 0
- 3
+ 1
23
- 1
+ 2
0
0
0
@@ -510,11 +523,21 @@
0
0
0
- Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_syscfg.c
- stm32f0xx_syscfg.c
+ Libraries\CMSIS\ST\STM32F0xx\Source\Templates\arm\startup_stm32f0xx.s
+ startup_stm32f0xx.s
+ 0
+ 0
+
+
+
+ Applications
+ 0
+ 0
+ 0
+ 0
- 3
+ 2
24
1
0
@@ -524,11 +547,13 @@
0
0
0
- Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_tim.c
- stm32f0xx_tim.c
+ applications\application.c
+ application.c
+ 0
+ 0
- 3
+ 2
25
1
0
@@ -538,9 +563,19 @@
0
0
0
- Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_usart.c
- stm32f0xx_usart.c
+ applications\startup.c
+ startup.c
+ 0
+ 0
+
+
+
+ Drivers
+ 0
+ 0
+ 0
+ 0
3
26
@@ -552,13 +587,15 @@
0
0
0
- Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_wwdg.c
- stm32f0xx_wwdg.c
+ drivers\board.c
+ board.c
+ 0
+ 0
3
27
- 2
+ 1
0
0
0
@@ -566,8 +603,42 @@
0
0
0
- Libraries\CMSIS\ST\STM32F0xx\Source\Templates\arm\startup_stm32f0xx.s
- startup_stm32f0xx.s
+ drivers\led.c
+ led.c
+ 0
+ 0
+
+
+ 3
+ 28
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ drivers\stm32f0xx_it.c
+ stm32f0xx_it.c
+ 0
+ 0
+
+
+ 3
+ 29
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ drivers\usart.c
+ usart.c
+ 0
+ 0
@@ -576,9 +647,10 @@
0
0
0
+ 0
4
- 28
+ 30
1
0
0
@@ -589,10 +661,44 @@
0
..\..\src\clock.c
clock.c
+ 0
+ 0
4
- 29
+ 31
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ ..\..\src\components.c
+ components.c
+ 0
+ 0
+
+
+ 4
+ 32
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ ..\..\src\device.c
+ device.c
+ 0
+ 0
+
+
+ 4
+ 33
1
0
0
@@ -603,10 +709,12 @@
0
..\..\src\idle.c
idle.c
+ 0
+ 0
4
- 30
+ 34
1
0
0
@@ -617,10 +725,12 @@
0
..\..\src\ipc.c
ipc.c
+ 0
+ 0
4
- 31
+ 35
1
0
0
@@ -631,38 +741,60 @@
0
..\..\src\irq.c
irq.c
+ 0
+ 0
4
- 32
+ 36
1
0
0
0
0
- 1
- 1
+ 0
+ 0
0
..\..\src\kservice.c
kservice.c
+ 0
+ 0
4
- 33
+ 37
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ ..\..\src\mem.c
+ mem.c
+ 0
+ 0
+
+
+ 4
+ 38
1
0
0
- 16
+ 0
0
- 1
- 16
+ 0
+ 0
0
..\..\src\object.c
object.c
+ 0
+ 0
4
- 34
+ 39
1
0
0
@@ -673,10 +805,12 @@
0
..\..\src\scheduler.c
scheduler.c
+ 0
+ 0
4
- 35
+ 40
1
0
0
@@ -687,20 +821,24 @@
0
..\..\src\thread.c
thread.c
+ 0
+ 0
4
- 36
+ 41
1
0
0
- 20
+ 0
0
- 31
- 36
+ 0
+ 0
0
..\..\src\timer.c
timer.c
+ 0
+ 0
@@ -709,9 +847,10 @@
0
0
0
+ 0
5
- 37
+ 42
1
0
0
@@ -722,10 +861,12 @@
0
..\..\libcpu\arm\cortex-m0\cpuport.c
cpuport.c
+ 0
+ 0
5
- 38
+ 43
2
0
0
@@ -736,10 +877,12 @@
0
..\..\libcpu\arm\cortex-m0\context_rvds.S
context_rvds.S
+ 0
+ 0
5
- 39
+ 44
1
0
0
@@ -750,10 +893,12 @@
0
..\..\libcpu\arm\common\backtrace.c
backtrace.c
+ 0
+ 0
5
- 40
+ 45
1
0
0
@@ -764,10 +909,12 @@
0
..\..\libcpu\arm\common\div0.c
div0.c
+ 0
+ 0
5
- 41
+ 46
1
0
0
@@ -778,6 +925,216 @@
0
..\..\libcpu\arm\common\showmem.c
showmem.c
+ 0
+ 0
+
+
+
+
+ DeviceDrivers
+ 0
+ 0
+ 0
+ 0
+
+ 6
+ 47
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ ..\..\components\drivers\serial\serial.c
+ serial.c
+ 0
+ 0
+
+
+ 6
+ 48
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ ..\..\components\drivers\src\completion.c
+ completion.c
+ 0
+ 0
+
+
+ 6
+ 49
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ ..\..\components\drivers\src\dataqueue.c
+ dataqueue.c
+ 0
+ 0
+
+
+ 6
+ 50
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ ..\..\components\drivers\src\pipe.c
+ pipe.c
+ 0
+ 0
+
+
+ 6
+ 51
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ ..\..\components\drivers\src\portal.c
+ portal.c
+ 0
+ 0
+
+
+ 6
+ 52
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ ..\..\components\drivers\src\ringbuffer.c
+ ringbuffer.c
+ 0
+ 0
+
+
+ 6
+ 53
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ ..\..\components\drivers\src\workqueue.c
+ workqueue.c
+ 0
+ 0
+
+
+
+
+ finsh
+ 0
+ 0
+ 0
+ 0
+
+ 7
+ 54
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ ..\..\components\finsh\shell.c
+ shell.c
+ 0
+ 0
+
+
+ 7
+ 55
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ ..\..\components\finsh\symbol.c
+ symbol.c
+ 0
+ 0
+
+
+ 7
+ 56
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ ..\..\components\finsh\cmd.c
+ cmd.c
+ 0
+ 0
+
+
+ 7
+ 57
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ ..\..\components\finsh\msh_cmd.c
+ msh_cmd.c
+ 0
+ 0
+
+
+ 7
+ 58
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ ..\..\components\finsh\msh.c
+ msh.c
+ 0
+ 0
diff --git a/bsp/stm32f0x/project.uvproj b/bsp/stm32f0x/project.uvproj
index f2d0040daf27e177b21e09abfc2b8a55b77f4527..0b72a4f31d76600db69cfbd4b510bc98b9e30283 100644
--- a/bsp/stm32f0x/project.uvproj
+++ b/bsp/stm32f0x/project.uvproj
@@ -1,7 +1,10 @@
+
1.1
+
### uVision Project, (C) Keil Software
+
rt-thread
@@ -12,25 +15,25 @@
STM32F051R8
STMicroelectronics
IRAM(0x20000000-0x20001FFF) IROM(0x8000000-0x800FFFF) CLOCK(8000000) CPUTYPE("Cortex-M0")
-
+
"Startup\ST\STM32F0xx\startup_stm32f0xx.s" ("STM32F0xx Startup Code")
UL2CM3(-O207 -S0 -C0 -FO7 -FD20000000 -FC800 -FN1 -FF0STM32F05x_64 -FS08000000 -FL010000)
6188
stm32f0xx.h
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
SFD\ST\STM32F0xx\STM32F051xx.sfr
0
-
-
-
+
+
+
ST\STM32F0xx\
ST\STM32F0xx\
@@ -54,8 +57,8 @@
0
0
-
-
+
+
0
0
0
@@ -64,21 +67,21 @@
0
0
-
-
+
+
0
0
0
0
-
-
+
+
0
0
0
-
+
0
@@ -92,16 +95,16 @@
0
0
3
-
-
+
+
SARMCM3.DLL
-
+
DARMCM1.DLL
-pCM0
SARMCM3.DLL
-
+
TARMCM1.DLL
-pCM0
@@ -133,22 +136,23 @@
1
0
1
+ 0
0
13
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
STLink\ST-LINKIII-KEIL_SWO.dll
@@ -161,9 +165,10 @@
1
4104
+ 0
STLink\ST-LINKIII-KEIL_SWO.dll
"" ()
-
+
@@ -195,7 +200,7 @@
0
0
"Cortex-M0"
-
+
0
0
0
@@ -326,7 +331,7 @@
0x0
-
+
1
@@ -341,11 +346,12 @@
0
0
0
+ 0
-
- RT_USING_ARM_LIBC, USE_STDPERIPH_DRIVER
-
- Libraries/STM32F0xx_StdPeriph_Driver/inc;Libraries/CMSIS/ST/STM32F0xx/Include;Libraries/CMSIS/Include;applications;.;drivers;../../include;../../libcpu/arm/cortex-m0;../../libcpu/arm/common;../../components/libc/armlibc;../../components/drivers/include;../../components/drivers/include;../../components/finsh
+
+ USE_STDPERIPH_DRIVER
+
+ Libraries\STM32F0xx_StdPeriph_Driver\inc;Libraries\CMSIS\ST\STM32F0xx\Include;Libraries\CMSIS\Include;applications;.;drivers;..\..\include;..\..\libcpu\arm\cortex-m0;..\..\libcpu\arm\common;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\finsh
@@ -356,11 +362,12 @@
0
0
0
+ 0
-
-
-
-
+
+
+
+
@@ -372,12 +379,12 @@
0
0x08000000
0x20000000
-
-
-
- --keep *.o(.rti_fn.*) --keep *.o(FSymTab) --keep *.o(VSymTab)
-
-
+
+
+
+ --keep *.o(.rti_fn.*) --keep *.o(FSymTab)
+
+
@@ -388,161 +395,117 @@
system_stm32f0xx.c
1
- Libraries/CMSIS/ST/STM32F0xx/Source/Templates/system_stm32f0xx.c
+ Libraries\CMSIS\ST\STM32F0xx\Source\Templates\system_stm32f0xx.c
-
-
stm32f0xx_adc.c
1
- Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_adc.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_adc.c
-
-
stm32f0xx_cec.c
1
- Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_cec.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_cec.c
-
-
stm32f0xx_comp.c
1
- Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_comp.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_comp.c
-
-
stm32f0xx_crc.c
1
- Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_crc.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_crc.c
-
-
stm32f0xx_dac.c
1
- Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_dac.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_dac.c
-
-
stm32f0xx_dbgmcu.c
1
- Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_dbgmcu.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_dbgmcu.c
-
-
stm32f0xx_dma.c
1
- Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_dma.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_dma.c
-
-
stm32f0xx_exti.c
1
- Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_exti.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_exti.c
-
-
stm32f0xx_flash.c
1
- Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_flash.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_flash.c
-
-
stm32f0xx_gpio.c
1
- Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_gpio.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_gpio.c
-
-
stm32f0xx_i2c.c
1
- Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_i2c.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_i2c.c
-
-
stm32f0xx_iwdg.c
1
- Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_iwdg.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_iwdg.c
-
-
stm32f0xx_misc.c
1
- Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_misc.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_misc.c
-
-
stm32f0xx_pwr.c
1
- Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_pwr.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_pwr.c
-
-
stm32f0xx_rcc.c
1
- Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_rcc.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_rcc.c
-
-
stm32f0xx_rtc.c
1
- Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_rtc.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_rtc.c
-
-
stm32f0xx_spi.c
1
- Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_spi.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_spi.c
-
-
stm32f0xx_syscfg.c
1
- Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_syscfg.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_syscfg.c
-
-
stm32f0xx_tim.c
1
- Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_tim.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_tim.c
-
-
stm32f0xx_usart.c
1
- Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_usart.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_usart.c
-
-
stm32f0xx_wwdg.c
1
- Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_wwdg.c
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_wwdg.c
-
-
startup_stm32f0xx.s
2
- Libraries/CMSIS/ST/STM32F0xx/Source/Templates/arm/startup_stm32f0xx.s
+ Libraries\CMSIS\ST\STM32F0xx\Source\Templates\arm\startup_stm32f0xx.s
@@ -552,14 +515,12 @@
application.c
1
- applications/application.c
+ applications\application.c
-
-
startup.c
1
- applications/startup.c
+ applications\startup.c
@@ -569,28 +530,22 @@
board.c
1
- drivers/board.c
+ drivers\board.c
-
-
led.c
1
- drivers/led.c
+ drivers\led.c
-
-
stm32f0xx_it.c
1
- drivers/stm32f0xx_it.c
+ drivers\stm32f0xx_it.c
-
-
usart.c
1
- drivers/usart.c
+ drivers\usart.c
@@ -600,84 +555,62 @@
clock.c
1
- ../../src/clock.c
+ ..\..\src\clock.c
-
-
components.c
1
- ../../src/components.c
+ ..\..\src\components.c
-
-
device.c
1
- ../../src/device.c
+ ..\..\src\device.c
-
-
idle.c
1
- ../../src/idle.c
+ ..\..\src\idle.c
-
-
ipc.c
1
- ../../src/ipc.c
+ ..\..\src\ipc.c
-
-
irq.c
1
- ../../src/irq.c
+ ..\..\src\irq.c
-
-
kservice.c
1
- ../../src/kservice.c
+ ..\..\src\kservice.c
-
-
mem.c
1
- ../../src/mem.c
+ ..\..\src\mem.c
-
-
object.c
1
- ../../src/object.c
+ ..\..\src\object.c
-
-
scheduler.c
1
- ../../src/scheduler.c
+ ..\..\src\scheduler.c
-
-
thread.c
1
- ../../src/thread.c
+ ..\..\src\thread.c
-
-
timer.c
1
- ../../src/timer.c
+ ..\..\src\timer.c
@@ -687,52 +620,27 @@
cpuport.c
1
- ../../libcpu/arm/cortex-m0/cpuport.c
+ ..\..\libcpu\arm\cortex-m0\cpuport.c
-
-
context_rvds.S
2
- ../../libcpu/arm/cortex-m0/context_rvds.S
+ ..\..\libcpu\arm\cortex-m0\context_rvds.S
-
-
backtrace.c
1
- ../../libcpu/arm/common/backtrace.c
+ ..\..\libcpu\arm\common\backtrace.c
-
-
div0.c
1
- ../../libcpu/arm/common/div0.c
+ ..\..\libcpu\arm\common\div0.c
-
-
showmem.c
1
- ../../libcpu/arm/common/showmem.c
-
-
-
-
- libc
-
-
- mem_std.c
- 1
- ../../components/libc/armlibc/mem_std.c
-
-
-
-
- stubs.c
- 1
- ../../components/libc/armlibc/stubs.c
+ ..\..\libcpu\arm\common\showmem.c
@@ -742,49 +650,37 @@
serial.c
1
- ../../components/drivers/serial/serial.c
+ ..\..\components\drivers\serial\serial.c
-
-
completion.c
1
- ../../components/drivers/src/completion.c
+ ..\..\components\drivers\src\completion.c
-
-
dataqueue.c
1
- ../../components/drivers/src/dataqueue.c
+ ..\..\components\drivers\src\dataqueue.c
-
-
pipe.c
1
- ../../components/drivers/src/pipe.c
+ ..\..\components\drivers\src\pipe.c
-
-
portal.c
1
- ../../components/drivers/src/portal.c
+ ..\..\components\drivers\src\portal.c
-
-
ringbuffer.c
1
- ../../components/drivers/src/ringbuffer.c
+ ..\..\components\drivers\src\ringbuffer.c
-
-
workqueue.c
1
- ../../components/drivers/src/workqueue.c
+ ..\..\components\drivers\src\workqueue.c
@@ -794,95 +690,32 @@
shell.c
1
- ../../components/finsh/shell.c
+ ..\..\components\finsh\shell.c
-
-
symbol.c
1
- ../../components/finsh/symbol.c
+ ..\..\components\finsh\symbol.c
-
-
cmd.c
1
- ../../components/finsh/cmd.c
+ ..\..\components\finsh\cmd.c
-
-
- finsh_compiler.c
+ msh_cmd.c
1
- ../../components/finsh/finsh_compiler.c
+ ..\..\components\finsh\msh_cmd.c
-
-
-
- finsh_error.c
- 1
- ../../components/finsh/finsh_error.c
-
-
-
-
- finsh_heap.c
- 1
- ../../components/finsh/finsh_heap.c
-
-
-
-
- finsh_init.c
- 1
- ../../components/finsh/finsh_init.c
-
-
-
-
- finsh_node.c
- 1
- ../../components/finsh/finsh_node.c
-
-
-
-
- finsh_ops.c
- 1
- ../../components/finsh/finsh_ops.c
-
-
-
-
- finsh_parser.c
- 1
- ../../components/finsh/finsh_parser.c
-
-
-
-
- finsh_var.c
- 1
- ../../components/finsh/finsh_var.c
-
-
-
-
- finsh_vm.c
- 1
- ../../components/finsh/finsh_vm.c
-
-
-
- finsh_token.c
+ msh.c
1
- ../../components/finsh/finsh_token.c
+ ..\..\components\finsh\msh.c
+
diff --git a/bsp/stm32f0x/project.uvprojx b/bsp/stm32f0x/project.uvprojx
index 543bdd69226d135cb222829cfd0ebac77318a4ae..d07f696dd3110010cf6e00bc53ed982774389e1e 100644
--- a/bsp/stm32f0x/project.uvprojx
+++ b/bsp/stm32f0x/project.uvprojx
@@ -1,10 +1,7 @@
-
2.1
-
### uVision Project, (C) Keil Software
-
rt-thread
@@ -17,26 +14,26 @@
Keil.STM32F0xx_DFP.1.2.0
http://www.keil.com/pack/
IROM(0x08000000,0x10000) IRAM(0x20000000,0x2000) CPUTYPE("Cortex-M0") CLOCK(12000000) ELITTLE
-
-
+
+
UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0STM32F0xx_64 -FS08000000 -FL010000 -FP0($$Device:STM32F051R8$Flash\STM32F0xx_64.FLM))
0
$$Device:STM32F051R8$Device\Include\stm32f0xx.h
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
$$Device:STM32F051R8$SVD\STM32F0xx.svd
0
0
-
-
-
+
+
+
ST\STM32F0xx\
ST\STM32F0xx\
@@ -60,8 +57,8 @@
0
0
-
-
+
+
0
0
0
@@ -70,23 +67,21 @@
0
0
-
-
+
+
0
0
- 0
- 0
0
0
-
-
+
+
0
0
0
-
+
0
@@ -100,17 +95,16 @@
0
0
3
-
-
- 1
+
+
SARMCM3.DLL
-
+
DARMCM1.DLL
-pCM0
SARMCM3.DLL
-
+
TARMCM1.DLL
-pCM0
@@ -132,7 +126,6 @@
1
1
0
- 1
1
@@ -143,24 +136,22 @@
1
0
1
- 0
- 1
0
- 11
+ 13
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
STLink\ST-LINKIII-KEIL_SWO.dll
@@ -173,14 +164,9 @@
1
4104
- 1
STLink\ST-LINKIII-KEIL_SWO.dll
"" ()
-
-
-
-
- 0
+
@@ -212,7 +198,7 @@
0
0
"Cortex-M0"
-
+
0
0
0
@@ -343,7 +329,7 @@
0x0
-
+
1
@@ -358,14 +344,11 @@
0
0
0
- 0
- 0
- 0
-
- RT_USING_ARM_LIBC, USE_STDPERIPH_DRIVER
-
- .;..\..\components\drivers\include;..\..\components\finsh;..\..\components\init;..\..\components\libc\armlibc;..\..\include;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m0;Libraries\CMSIS\Include;Libraries\CMSIS\ST\STM32F0xx\Include;Libraries\STM32F0xx_StdPeriph_Driver\inc;applications;drivers
+
+ USE_STDPERIPH_DRIVER
+
+ .;..\..\components\drivers\include;..\..\components\finsh;..\..\include;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m0;Libraries\CMSIS\Include;Libraries\CMSIS\ST\STM32F0xx\Include;Libraries\STM32F0xx_StdPeriph_Driver\inc;applications;drivers
@@ -376,13 +359,11 @@
0
0
0
- 0
- 0
-
-
-
-
+
+
+
+
@@ -394,57 +375,16 @@
0
0x08000000
0x20000000
-
-
-
-
- --keep __fsym_* --keep __vsym_* --keep __rt_init*
-
-
+
+
+
+ --keep *.o(.rti_fn.*) --keep *.o(FSymTab)
+
+
-
- Applications
-
-
- application.c
- 1
- applications\application.c
-
-
- startup.c
- 1
- applications\startup.c
-
-
-
-
- Drivers
-
-
- board.c
- 1
- drivers\board.c
-
-
- led.c
- 1
- drivers\led.c
-
-
- stm32f0xx_it.c
- 1
- drivers\stm32f0xx_it.c
-
-
- usart.c
- 1
- drivers\usart.c
-
-
-
STM32_StdPeriph
@@ -453,111 +393,155 @@
1
Libraries\CMSIS\ST\STM32F0xx\Source\Templates\system_stm32f0xx.c
+
+
stm32f0xx_adc.c
1
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_adc.c
+
+
stm32f0xx_cec.c
1
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_cec.c
+
+
stm32f0xx_comp.c
1
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_comp.c
+
+
stm32f0xx_crc.c
1
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_crc.c
+
+
stm32f0xx_dac.c
1
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_dac.c
+
+
stm32f0xx_dbgmcu.c
1
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_dbgmcu.c
+
+
stm32f0xx_dma.c
1
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_dma.c
+
+
stm32f0xx_exti.c
1
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_exti.c
+
+
stm32f0xx_flash.c
1
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_flash.c
+
+
stm32f0xx_gpio.c
1
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_gpio.c
+
+
stm32f0xx_i2c.c
1
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_i2c.c
+
+
stm32f0xx_iwdg.c
1
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_iwdg.c
+
+
stm32f0xx_misc.c
1
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_misc.c
+
+
stm32f0xx_pwr.c
1
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_pwr.c
+
+
stm32f0xx_rcc.c
1
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_rcc.c
+
+
stm32f0xx_rtc.c
1
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_rtc.c
+
+
stm32f0xx_spi.c
1
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_spi.c
+
+
stm32f0xx_syscfg.c
1
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_syscfg.c
+
+
stm32f0xx_tim.c
1
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_tim.c
+
+
stm32f0xx_usart.c
1
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_usart.c
+
+
stm32f0xx_wwdg.c
1
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_wwdg.c
+
+
startup_stm32f0xx.s
2
@@ -565,6 +549,54 @@
+
+ Applications
+
+
+ application.c
+ 1
+ applications\application.c
+
+
+
+
+ startup.c
+ 1
+ applications\startup.c
+
+
+
+
+ Drivers
+
+
+ board.c
+ 1
+ drivers\board.c
+
+
+
+
+ led.c
+ 1
+ drivers\led.c
+
+
+
+
+ stm32f0xx_it.c
+ 1
+ drivers\stm32f0xx_it.c
+
+
+
+
+ usart.c
+ 1
+ drivers\usart.c
+
+
+
Kernel
@@ -573,51 +605,78 @@
1
..\..\src\clock.c
+
+
+
+ components.c
+ 1
+ ..\..\src\components.c
+
+
+
device.c
1
..\..\src\device.c
+
+
idle.c
1
..\..\src\idle.c
+
+
ipc.c
1
..\..\src\ipc.c
+
+
irq.c
1
..\..\src\irq.c
+
+
kservice.c
1
..\..\src\kservice.c
+
+
mem.c
1
..\..\src\mem.c
+
+
object.c
1
..\..\src\object.c
+
+
scheduler.c
1
..\..\src\scheduler.c
+
+
thread.c
1
..\..\src\thread.c
+
+
timer.c
1
@@ -633,21 +692,29 @@
1
..\..\libcpu\arm\cortex-m0\cpuport.c
+
+
context_rvds.S
2
..\..\libcpu\arm\cortex-m0\context_rvds.S
+
+
backtrace.c
1
..\..\libcpu\arm\common\backtrace.c
+
+
div0.c
1
..\..\libcpu\arm\common\div0.c
+
+
showmem.c
1
@@ -663,31 +730,43 @@
1
..\..\components\drivers\serial\serial.c
+
+
completion.c
1
..\..\components\drivers\src\completion.c
+
+
dataqueue.c
1
..\..\components\drivers\src\dataqueue.c
+
+
pipe.c
1
..\..\components\drivers\src\pipe.c
+
+
portal.c
1
..\..\components\drivers\src\portal.c
+
+
ringbuffer.c
1
..\..\components\drivers\src\ringbuffer.c
+
+
workqueue.c
1
@@ -703,95 +782,37 @@
1
..\..\components\finsh\shell.c
+
+
symbol.c
1
..\..\components\finsh\symbol.c
+
+
cmd.c
1
..\..\components\finsh\cmd.c
-
- finsh_compiler.c
- 1
- ..\..\components\finsh\finsh_compiler.c
-
-
- finsh_error.c
- 1
- ..\..\components\finsh\finsh_error.c
-
-
- finsh_heap.c
- 1
- ..\..\components\finsh\finsh_heap.c
-
-
- finsh_init.c
- 1
- ..\..\components\finsh\finsh_init.c
-
-
- finsh_node.c
- 1
- ..\..\components\finsh\finsh_node.c
-
-
- finsh_ops.c
- 1
- ..\..\components\finsh\finsh_ops.c
-
-
- finsh_parser.c
- 1
- ..\..\components\finsh\finsh_parser.c
-
-
- finsh_var.c
- 1
- ..\..\components\finsh\finsh_var.c
-
-
- finsh_vm.c
- 1
- ..\..\components\finsh\finsh_vm.c
-
-
- finsh_token.c
- 1
- ..\..\components\finsh\finsh_token.c
-
-
-
- Components
- components.c
+ msh_cmd.c
1
- ..\..\components\init\components.c
+ ..\..\components\finsh\msh_cmd.c
-
-
- libc
- mem_std.c
- 1
- ..\..\components\libc\armlibc\mem_std.c
-
-
- stubs.c
+ msh.c
1
- ..\..\components\libc\armlibc\stubs.c
+ ..\..\components\finsh\msh.c
-