diff --git a/bsp/stm32f0x/project.uvopt b/bsp/stm32f0x/project.uvopt
index 25161a3a8c..6abc948d0a 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
@@ -172,84 +154,15 @@
-
- Applications
- 0
- 0
- 0
-
- 1
- 1
- 1
- 0
- 0
- 49
- 0
- 2
- 4
- 0
- applications\application.c
- application.c
-
-
- 1
- 2
- 1
- 0
- 0
- 0
- 0
- 97
- 115
- 0
- applications\startup.c
- startup.c
-
-
-
-
- Drivers
- 0
- 0
- 0
-
- 2
- 3
- 1
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- drivers\board.c
- board.c
-
-
- 2
- 4
- 1
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- drivers\stm32f0xx_it.c
- stm32f0xx_it.c
-
-
-
STM32_StdPeriph
0
0
0
+ 0
- 3
- 5
+ 1
+ 1
1
0
0
@@ -260,10 +173,12 @@
0
Libraries\CMSIS\ST\STM32F0xx\Source\Templates\system_stm32f0xx.c
system_stm32f0xx.c
+ 0
+ 0
- 3
- 6
+ 1
+ 2
1
0
0
@@ -274,10 +189,12 @@
0
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_adc.c
stm32f0xx_adc.c
+ 0
+ 0
- 3
- 7
+ 1
+ 3
1
0
0
@@ -288,10 +205,12 @@
0
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_cec.c
stm32f0xx_cec.c
+ 0
+ 0
- 3
- 8
+ 1
+ 4
1
0
0
@@ -302,10 +221,12 @@
0
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_comp.c
stm32f0xx_comp.c
+ 0
+ 0
- 3
- 9
+ 1
+ 5
1
0
0
@@ -316,10 +237,12 @@
0
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_crc.c
stm32f0xx_crc.c
+ 0
+ 0
- 3
- 10
+ 1
+ 6
1
0
0
@@ -330,10 +253,12 @@
0
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_dac.c
stm32f0xx_dac.c
+ 0
+ 0
- 3
- 11
+ 1
+ 7
1
0
0
@@ -344,10 +269,12 @@
0
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_dbgmcu.c
stm32f0xx_dbgmcu.c
+ 0
+ 0
- 3
- 12
+ 1
+ 8
1
0
0
@@ -358,10 +285,12 @@
0
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_dma.c
stm32f0xx_dma.c
+ 0
+ 0
- 3
- 13
+ 1
+ 9
1
0
0
@@ -372,10 +301,12 @@
0
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_exti.c
stm32f0xx_exti.c
+ 0
+ 0
- 3
- 14
+ 1
+ 10
1
0
0
@@ -386,10 +317,12 @@
0
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_flash.c
stm32f0xx_flash.c
+ 0
+ 0
- 3
- 15
+ 1
+ 11
1
0
0
@@ -400,10 +333,12 @@
0
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_gpio.c
stm32f0xx_gpio.c
+ 0
+ 0
- 3
- 16
+ 1
+ 12
1
0
0
@@ -414,10 +349,12 @@
0
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_i2c.c
stm32f0xx_i2c.c
+ 0
+ 0
- 3
- 17
+ 1
+ 13
1
0
0
@@ -428,10 +365,12 @@
0
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_iwdg.c
stm32f0xx_iwdg.c
+ 0
+ 0
- 3
- 18
+ 1
+ 14
1
0
0
@@ -442,10 +381,12 @@
0
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_misc.c
stm32f0xx_misc.c
+ 0
+ 0
- 3
- 19
+ 1
+ 15
1
0
0
@@ -456,10 +397,12 @@
0
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_pwr.c
stm32f0xx_pwr.c
+ 0
+ 0
- 3
- 20
+ 1
+ 16
1
0
0
@@ -470,10 +413,12 @@
0
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_rcc.c
stm32f0xx_rcc.c
+ 0
+ 0
- 3
- 21
+ 1
+ 17
1
0
0
@@ -484,10 +429,12 @@
0
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_rtc.c
stm32f0xx_rtc.c
+ 0
+ 0
- 3
- 22
+ 1
+ 18
1
0
0
@@ -498,10 +445,12 @@
0
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_spi.c
stm32f0xx_spi.c
+ 0
+ 0
- 3
- 23
+ 1
+ 19
1
0
0
@@ -512,10 +461,12 @@
0
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_syscfg.c
stm32f0xx_syscfg.c
+ 0
+ 0
- 3
- 24
+ 1
+ 20
1
0
0
@@ -526,10 +477,12 @@
0
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_tim.c
stm32f0xx_tim.c
+ 0
+ 0
- 3
- 25
+ 1
+ 21
1
0
0
@@ -540,7 +493,89 @@
0
Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_usart.c
stm32f0xx_usart.c
+ 0
+ 0
+
+ 1
+ 22
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ Libraries\STM32F0xx_StdPeriph_Driver\src\stm32f0xx_wwdg.c
+ stm32f0xx_wwdg.c
+ 0
+ 0
+
+
+ 1
+ 23
+ 2
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ Libraries\CMSIS\ST\STM32F0xx\Source\Templates\arm\startup_stm32f0xx.s
+ startup_stm32f0xx.s
+ 0
+ 0
+
+
+
+
+ Applications
+ 0
+ 0
+ 0
+ 0
+
+ 2
+ 24
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ applications\application.c
+ application.c
+ 0
+ 0
+
+
+ 2
+ 25
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 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,18 +603,13 @@
0
0
0
- Libraries\CMSIS\ST\STM32F0xx\Source\Templates\arm\startup_stm32f0xx.s
- startup_stm32f0xx.s
+ drivers\led.c
+ led.c
+ 0
+ 0
-
-
-
- Kernel
- 0
- 0
- 0
- 4
+ 3
28
1
0
@@ -587,11 +619,13 @@
0
0
0
- ..\..\src\clock.c
- clock.c
+ drivers\stm32f0xx_it.c
+ stm32f0xx_it.c
+ 0
+ 0
- 4
+ 3
29
1
0
@@ -601,9 +635,19 @@
0
0
0
- ..\..\src\idle.c
- idle.c
+ drivers\usart.c
+ usart.c
+ 0
+ 0
+
+
+
+ Kernel
+ 0
+ 0
+ 0
+ 0
4
30
@@ -615,8 +659,10 @@
0
0
0
- ..\..\src\ipc.c
- ipc.c
+ ..\..\src\clock.c
+ clock.c
+ 0
+ 0
4
@@ -629,8 +675,10 @@
0
0
0
- ..\..\src\irq.c
- irq.c
+ ..\..\src\components.c
+ components.c
+ 0
+ 0
4
@@ -640,11 +688,13 @@
0
0
0
- 1
- 1
+ 0
+ 0
0
- ..\..\src\kservice.c
- kservice.c
+ ..\..\src\device.c
+ device.c
+ 0
+ 0
4
@@ -652,13 +702,15 @@
1
0
0
- 16
+ 0
0
- 1
- 16
+ 0
+ 0
0
- ..\..\src\object.c
- object.c
+ ..\..\src\idle.c
+ idle.c
+ 0
+ 0
4
@@ -671,8 +723,10 @@
0
0
0
- ..\..\src\scheduler.c
- scheduler.c
+ ..\..\src\ipc.c
+ ipc.c
+ 0
+ 0
4
@@ -685,8 +739,10 @@
0
0
0
- ..\..\src\thread.c
- thread.c
+ ..\..\src\irq.c
+ irq.c
+ 0
+ 0
4
@@ -694,13 +750,95 @@
1
0
0
- 20
+ 0
0
- 31
- 36
+ 0
+ 0
+ 0
+ ..\..\src\kservice.c
+ kservice.c
+ 0
+ 0
+
+
+ 4
+ 37
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ ..\..\src\mem.c
+ mem.c
+ 0
+ 0
+
+
+ 4
+ 38
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ ..\..\src\object.c
+ object.c
+ 0
+ 0
+
+
+ 4
+ 39
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ ..\..\src\scheduler.c
+ scheduler.c
+ 0
+ 0
+
+
+ 4
+ 40
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ ..\..\src\thread.c
+ thread.c
+ 0
+ 0
+
+
+ 4
+ 41
+ 1
+ 0
+ 0
+ 0
+ 0
+ 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 f2d0040daf..0b72a4f31d 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
+ msh.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\finsh\msh.c
+
diff --git a/bsp/stm32f0x/project.uvprojx b/bsp/stm32f0x/project.uvprojx
index 543bdd6922..d07f696dd3 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,17 +375,180 @@
0
0x08000000
0x20000000
-
-
-
-
- --keep __fsym_* --keep __vsym_* --keep __rt_init*
-
-
+
+
+
+ --keep *.o(.rti_fn.*) --keep *.o(FSymTab)
+
+
+
+ STM32_StdPeriph
+
+
+ system_stm32f0xx.c
+ 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
+ Libraries\CMSIS\ST\STM32F0xx\Source\Templates\arm\startup_stm32f0xx.s
+
+
+
Applications
@@ -413,6 +557,8 @@
1
applications\application.c
+
+
startup.c
1
@@ -428,16 +574,22 @@
1
drivers\board.c
+
+
led.c
1
drivers\led.c
+
+
stm32f0xx_it.c
1
drivers\stm32f0xx_it.c
+
+
usart.c
1
@@ -445,126 +597,6 @@
-
- STM32_StdPeriph
-
-
- system_stm32f0xx.c
- 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
- Libraries\CMSIS\ST\STM32F0xx\Source\Templates\arm\startup_stm32f0xx.s
-
-
-
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
+ msh.c
1
- ..\..\components\libc\armlibc\mem_std.c
-
-
- stubs.c
- 1
- ..\..\components\libc\armlibc\stubs.c
+ ..\..\components\finsh\msh.c
-