Browse Source

bug fixed for optimization

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@789 bbd45198-f89e-11dd-88c7-29a3b14d5316
zchongnari@gmail.com 15 years ago
parent
commit
69466590ff
3 changed files with 1252 additions and 46 deletions
  1. 1234 28
      bsp/sep4020/project.uvopt
  2. 11 11
      bsp/sep4020/project.uvproj
  3. 7 7
      libcpu/arm/sep4020/serial.h

File diff suppressed because it is too large
+ 1234 - 28
bsp/sep4020/project.uvopt


+ 11 - 11
bsp/sep4020/project.uvproj

@@ -126,8 +126,8 @@
           </Simulator>
           <Target>
             <UseTarget>1</UseTarget>
-            <LoadApplicationAtStartup>0</LoadApplicationAtStartup>
-            <RunToMain>0</RunToMain>
+            <LoadApplicationAtStartup>1</LoadApplicationAtStartup>
+            <RunToMain>1</RunToMain>
             <RestoreBreakpoints>0</RestoreBreakpoints>
             <RestoreWatchpoints>1</RestoreWatchpoints>
             <RestoreMemoryDisplay>1</RestoreMemoryDisplay>
@@ -159,10 +159,10 @@
             <RunIndependent>0</RunIndependent>
             <UpdateFlashBeforeDebugging>0</UpdateFlashBeforeDebugging>
             <Capability>1</Capability>
-            <DriverSelection>4100</DriverSelection>
+            <DriverSelection>4098</DriverSelection>
           </Flash1>
           <Flash2>Segger\JLTAgdi.dll</Flash2>
-          <Flash3></Flash3>
+          <Flash3>"" ()</Flash3>
           <Flash4></Flash4>
         </Utilities>
         <TargetArmAds>
@@ -330,7 +330,7 @@
           </ArmAdsMisc>
           <Cads>
             <interw>1</interw>
-            <Optim>1</Optim>
+            <Optim>3</Optim>
             <oTime>0</oTime>
             <SplitLS>0</SplitLS>
             <OneElfS>0</OneElfS>
@@ -483,32 +483,32 @@
             <File>
               <FileName>interrupt.c</FileName>
               <FileType>1</FileType>
-              <FilePath>E:\temp\rt-thread-sep4020\libcpu\arm\sep4020\interrupt.c</FilePath>
+              <FilePath>E:\temp\rt-thread\libcpu\arm\sep4020\interrupt.c</FilePath>
             </File>
             <File>
               <FileName>stack.c</FileName>
               <FileType>1</FileType>
-              <FilePath>E:\temp\rt-thread-sep4020\libcpu\arm\sep4020\stack.c</FilePath>
+              <FilePath>E:\temp\rt-thread\libcpu\arm\sep4020\stack.c</FilePath>
             </File>
             <File>
               <FileName>trap.c</FileName>
               <FileType>1</FileType>
-              <FilePath>E:\temp\rt-thread-sep4020\libcpu\arm\sep4020\trap.c</FilePath>
+              <FilePath>E:\temp\rt-thread\libcpu\arm\sep4020\trap.c</FilePath>
             </File>
             <File>
               <FileName>cpu.c</FileName>
               <FileType>1</FileType>
-              <FilePath>E:\temp\rt-thread-sep4020\libcpu\arm\sep4020\cpu.c</FilePath>
+              <FilePath>E:\temp\rt-thread\libcpu\arm\sep4020\cpu.c</FilePath>
             </File>
             <File>
               <FileName>start_rvds.S</FileName>
               <FileType>2</FileType>
-              <FilePath>E:\temp\rt-thread-sep4020\libcpu\arm\sep4020\start_rvds.S</FilePath>
+              <FilePath>E:\temp\rt-thread\libcpu\arm\sep4020\start_rvds.S</FilePath>
             </File>
             <File>
               <FileName>context_rvds.S</FileName>
               <FileType>2</FileType>
-              <FilePath>E:\temp\rt-thread-sep4020\libcpu\arm\sep4020\context_rvds.S</FilePath>
+              <FilePath>E:\temp\rt-thread\libcpu\arm\sep4020\context_rvds.S</FilePath>
             </File>
             <File>
               <FileName>clk.c</FileName>

+ 7 - 7
libcpu/arm/sep4020/serial.h

@@ -27,13 +27,13 @@ struct serial_int_tx
 /* serial port registers */
 typedef struct uartport
 {
-	rt_uint32_t dlbl_rxfifo_txfifo;
-	rt_uint32_t dlbh_ier;
-	rt_uint32_t iir_fcr;
-	rt_uint32_t lcr;
-	rt_uint32_t mcr;
-	rt_uint32_t lsr;
-	rt_uint32_t msr;
+	volatile rt_uint32_t dlbl_rxfifo_txfifo;
+	volatile rt_uint32_t dlbh_ier;
+	volatile rt_uint32_t iir_fcr;
+	volatile rt_uint32_t lcr;
+	volatile rt_uint32_t mcr;
+	volatile rt_uint32_t lsr;
+	volatile rt_uint32_t msr;
 }uartport;
 
 struct serial_device

Some files were not shown because too many files changed in this diff