From 2ab9a1602e40a2096cf620dbd3168090232cc10d Mon Sep 17 00:00:00 2001 From: dzzxzz Date: Fri, 23 Sep 2011 05:23:46 +0000 Subject: [PATCH] fixed compiling error in lpc122x branch git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1721 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- bsp/lpc122x/lpc122x.uvopt | 100 +++++++++++++++++++++---------------- bsp/lpc122x/lpc122x.uvproj | 7 ++- examples/kernel/tc_comm.c | 2 + 3 files changed, 65 insertions(+), 44 deletions(-) diff --git a/bsp/lpc122x/lpc122x.uvopt b/bsp/lpc122x/lpc122x.uvopt index d274a7503..23f70fbef 100644 --- a/bsp/lpc122x/lpc122x.uvopt +++ b/bsp/lpc122x/lpc122x.uvopt @@ -173,7 +173,7 @@ Startup - 1 + 0 0 0 @@ -182,10 +182,10 @@ 1 0 0 - 33 + 0 0 - 61 - 61 + 13 + 20 0 .\application.c application.c @@ -264,26 +264,26 @@ Kernel - 1 + 0 0 0 2 - 8 + 7 1 0 0 - 15 + 0 0 - 48 - 51 + 0 + 0 0 ..\..\src\clock.c clock.c 2 - 9 + 8 1 0 0 @@ -297,7 +297,7 @@ 2 - 10 + 9 1 0 0 @@ -311,7 +311,7 @@ 2 - 11 + 10 1 0 0 @@ -325,7 +325,7 @@ 2 - 12 + 11 1 0 0 @@ -339,7 +339,7 @@ 2 - 13 + 12 1 0 0 @@ -353,7 +353,7 @@ 2 - 14 + 13 1 0 0 @@ -367,7 +367,7 @@ 2 - 15 + 14 1 0 0 @@ -381,7 +381,7 @@ 2 - 16 + 15 1 0 0 @@ -395,7 +395,7 @@ 2 - 17 + 16 1 0 0 @@ -409,7 +409,7 @@ 2 - 18 + 17 1 0 0 @@ -423,7 +423,7 @@ 2 - 19 + 18 1 0 0 @@ -437,7 +437,7 @@ 2 - 20 + 19 1 0 0 @@ -451,21 +451,21 @@ 2 - 21 + 20 1 0 0 - 28 + 0 0 - 445 - 453 + 0 + 0 0 ..\..\src\thread.c thread.c 2 - 22 + 21 1 0 0 @@ -481,12 +481,12 @@ LPC122x - 1 + 0 0 0 3 - 23 + 22 1 0 0 @@ -500,7 +500,7 @@ 3 - 24 + 23 1 0 0 @@ -514,7 +514,7 @@ 3 - 25 + 24 1 0 0 @@ -528,7 +528,7 @@ 3 - 26 + 25 1 0 0 @@ -542,35 +542,35 @@ 3 - 27 + 26 2 0 0 - 17 + 0 0 - 97 - 104 + 0 + 0 0 ..\..\libcpu\arm\lpc122x\context_rvds.S context_rvds.S 3 - 28 + 27 2 0 0 - 36 + 0 0 - 1 - 15 + 0 + 0 0 ..\..\libcpu\arm\lpc122x\fault_rvds.S fault_rvds.S 3 - 29 + 28 2 0 0 @@ -582,16 +582,30 @@ ..\..\libcpu\arm\lpc122x\start_rvds.S start_rvds.S + + 3 + 0 + 1 + 0 + 0 + 60 + 0 + 1 + 16 + 0 + ..\..\examples\kernel\tc_comm.c + tc_comm.c + CMSIS - 1 + 0 0 0 4 - 30 + 29 1 0 0 @@ -605,7 +619,7 @@ 4 - 31 + 30 1 0 0 diff --git a/bsp/lpc122x/lpc122x.uvproj b/bsp/lpc122x/lpc122x.uvproj index af8da95a0..306c35198 100644 --- a/bsp/lpc122x/lpc122x.uvproj +++ b/bsp/lpc122x/lpc122x.uvproj @@ -346,7 +346,7 @@ - .;..\..\include;..\..\libcpu\arm\lpc122x; + .;..\..\include;..\..\libcpu\arm\lpc122x;..\..\examples\kernel @@ -536,6 +536,11 @@ 2 ..\..\libcpu\arm\lpc122x\start_rvds.S + + tc_comm.c + 1 + ..\..\examples\kernel\tc_comm.c + diff --git a/examples/kernel/tc_comm.c b/examples/kernel/tc_comm.c index 2bcf02552..af2da5a54 100644 --- a/examples/kernel/tc_comm.c +++ b/examples/kernel/tc_comm.c @@ -1,5 +1,7 @@ #include "tc_comm.h" +#ifdef RT_USING_FINSH #include +#endif #ifdef RT_USING_TC #define TC_PRIORITY 25 -- GitLab