diff --git a/bsp/lpc178x/applications/application.c b/bsp/lpc178x/applications/application.c
index c5ab98da32a29bc24d290c56e3aec28478d35fb1..53717f90aa41afe917a69fd07e4255b593bf8344 100644
--- a/bsp/lpc178x/applications/application.c
+++ b/bsp/lpc178x/applications/application.c
@@ -65,8 +65,6 @@ void rt_init_thread_entry(void *parameter)
/* register ethernetif device */
lpc17xx_emac_hw_init();
- /* init all device */
- rt_device_init_all();
/* init lwip system */
lwip_sys_init();
diff --git a/bsp/lpc178x/project.uvopt b/bsp/lpc178x/project.uvopt
new file mode 100644
index 0000000000000000000000000000000000000000..375316b4846c717cd6e08d172ce8ae94aa7c285d
--- /dev/null
+++ b/bsp/lpc178x/project.uvopt
@@ -0,0 +1,932 @@
+
+
+
+ 1.0
+
+ ### uVision Project, (C) Keil Software
+
+
+ *.c
+ *.s*; *.src; *.a*
+ *.obj
+ *.lib
+ *.txt; *.h; *.inc
+ *.plm
+ *.cpp
+
+
+
+ 0
+ 0
+
+
+
+ RT-Thread LPC17xx
+ 0x4
+ ARM-ADS
+
+ 12000000
+
+ 1
+ 1
+ 1
+ 0
+
+
+ 1
+ 65535
+ 0
+ 0
+ 0
+
+
+ 79
+ 66
+ 8
+ .\build\
+
+
+ 1
+ 1
+ 1
+ 0
+ 1
+ 1
+ 0
+ 1
+ 0
+ 0
+ 0
+ 0
+
+
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 0
+ 0
+
+
+ 1
+ 0
+ 1
+
+ 8
+
+ SARMCM3.DLL
+ -MPU
+ DARMP1.DLL
+ -pLPC1788
+ SARMCM3.DLL
+ -MPU
+ TARMP1.DLL
+ -pLPC1788
+
+
+ 0
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 0
+ 1
+ 0
+ 0
+ 0
+ 7
+
+
+
+
+
+
+
+
+
+
+ Segger\JL2CM3.dll
+
+
+
+ 0
+ UL2CM3
+ UL2CM3(-O463 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.c
+ finsh_node.c
+ 0
+ 0
+
+
+ 6
+ 41
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ ..\..\components\finsh\finsh_ops.c
+ finsh_ops.c
+ 0
+ 0
+
+
+ 6
+ 42
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ ..\..\components\finsh\finsh_parser.c
+ finsh_parser.c
+ 0
+ 0
+
+
+ 6
+ 43
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ ..\..\components\finsh\finsh_var.c
+ finsh_var.c
+ 0
+ 0
+
+
+ 6
+ 44
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ ..\..\components\finsh\finsh_vm.c
+ finsh_vm.c
+ 0
+ 0
+
+
+ 6
+ 45
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ ..\..\components\finsh\finsh_token.c
+ finsh_token.c
+ 0
+ 0
+
+
+
+
diff --git a/bsp/lpc178x/project.uvproj b/bsp/lpc178x/project.uvproj
index 8c259ccd04600cef79dcd96ef053acc0c87ebfbf..4918b5e4ccd61faa05e52b748d635b236cf46c53 100644
--- a/bsp/lpc178x/project.uvproj
+++ b/bsp/lpc178x/project.uvproj
@@ -30,6 +30,7 @@
+ 0
0
@@ -43,14 +44,14 @@
0
1
- .\obj\
+ .\build\
rtthread-lpc
1
0
0
1
1
- .\obj\
+ .\build\
1
0
0
@@ -97,6 +98,7 @@
3
+ 1
SARMCM3.DLL
@@ -130,7 +132,7 @@
1
1
- 0
+ 1
1
1
1
@@ -165,9 +167,14 @@
1
4099
+ 1
Segger\JL2CM3.dll
"" ()
+
+
+
+ 0
@@ -388,21 +395,6 @@
-
- Applications
-
-
- application.c
- 1
- applications\application.c
-
-
- startup.c
- 1
- applications\startup.c
-
-
-
CMSIS
@@ -423,6 +415,21 @@
+
+ Applications
+
+
+ application.c
+ 1
+ applications\application.c
+
+
+ startup.c
+ 1
+ applications\startup.c
+
+
+
Drivers
@@ -576,6 +583,16 @@
finsh
+
+ shell.c
+ 1
+ ..\..\components\finsh\shell.c
+
+
+ symbol.c
+ 1
+ ..\..\components\finsh\symbol.c
+
cmd.c
1
@@ -616,11 +633,6 @@
1
..\..\components\finsh\finsh_parser.c
-
- finsh_token.c
- 1
- ..\..\components\finsh\finsh_token.c
-
finsh_var.c
1
@@ -632,24 +644,9 @@
..\..\components\finsh\finsh_vm.c
- msh.c
- 1
- ..\..\components\finsh\msh.c
-
-
- msh_cmd.c
- 1
- ..\..\components\finsh\msh_cmd.c
-
-
- shell.c
- 1
- ..\..\components\finsh\shell.c
-
-
- symbol.c
+ finsh_token.c
1
- ..\..\components\finsh\symbol.c
+ ..\..\components\finsh\finsh_token.c
diff --git a/bsp/lpc178x/template.uvopt b/bsp/lpc178x/template.uvopt
new file mode 100644
index 0000000000000000000000000000000000000000..d463685ce46ada8b8c11f0a91f24ddcf93f6937e
--- /dev/null
+++ b/bsp/lpc178x/template.uvopt
@@ -0,0 +1,164 @@
+
+
+
+ 1.0
+
+ ### uVision Project, (C) Keil Software
+
+
+ *.c
+ *.s*; *.src; *.a*
+ *.obj
+ *.lib
+ *.txt; *.h; *.inc
+ *.plm
+ *.cpp
+
+
+
+ 0
+ 0
+
+
+
+ RT-Thread LPC17xx
+ 0x4
+ ARM-ADS
+
+ 12000000
+
+ 1
+ 1
+ 1
+ 0
+
+
+ 1
+ 65535
+ 0
+ 0
+ 0
+
+
+ 79
+ 66
+ 8
+ .\build\
+
+
+ 1
+ 1
+ 1
+ 0
+ 1
+ 1
+ 0
+ 1
+ 0
+ 0
+ 0
+ 0
+
+
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 1
+ 0
+ 0
+
+
+ 0
+ 0
+ 1
+
+ 0
+
+ SARMCM3.DLL
+ -MPU
+ DARMP1.DLL
+ -pLPC1788
+ SARMCM3.DLL
+ -MPU
+ TARMP1.DLL
+ -pLPC1788
+
+
+ 0
+ 1
+ 1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