Przeglądaj źródła

修改刹车阈值。

Deyauo 4 miesięcy temu
rodzic
commit
6fe14de371

+ 2 - 2
Debug/Exe/tail_light_stm8.hex

@@ -108,11 +108,11 @@
 :1086B00095A607CD88BDAE002ACD877AAE002ACD1B
 :1086C00099C8AE002ACD99B0A604CD88BDBE02CF10
 :1086D000005CCE0054CD98D4CD88CEAE002ECD8790
-:1086E00095A603CD88BDAE002ECD877AAE002ECDE7
+:1086E00095A602CD88BDAE002ECD877AAE002ECDE8
 :1086F00099C8AE002ECD99B0A604CD88BDBE02CFDC
 :10870000005EC6006C4D263AC6006DA1012633CE30
 :10871000005EA3FD2D2F2BCE005EA302D42E23CE10
-:10872000005C1C0096C3005E2E183501006C5FCF04
+:10872000005C1C00C8C3005E2E183501006C5FCFD2
 :10873000003CAE0012CD99B0AE001ECD99C8725F5C
 :10874000006DCE0050CF0056CE0052CF0058CE0064
 :1087500054CF005A2010AE0012CD99B0AE0032CDE9

BIN
Debug/Exe/tail_light_stm8.out


+ 2 - 2
Debug/List/tail_light_stm8.map

@@ -1,6 +1,6 @@
 ###############################################################################
 #
-# IAR ELF Linker V3.10.1.201 for STM8                     24/Mar/2025  18:49:44
+# IAR ELF Linker V3.10.1.201 for STM8                     01/Apr/2025  16:08:10
 # Copyright 2010-2017 IAR Systems AB.
 #
 #    Output file  =  
@@ -8,7 +8,7 @@
 #    Map file     =  
 #        C:\Users\hero\Desktop\Project\Taillight_Code\stm8_prj\code_iar\Debug\List\tail_light_stm8.map
 #    Command line =  
-#        -f C:\Users\hero\AppData\Local\Temp\EWEFC.tmp
+#        -f C:\Users\hero\AppData\Local\Temp\EW6E91.tmp
 #        (C:\Users\hero\Desktop\Project\Taillight_Code\stm8_prj\code_iar\Debug\Obj\delay.o
 #        C:\Users\hero\Desktop\Project\Taillight_Code\stm8_prj\code_iar\Debug\Obj\hw_init.o
 #        C:\Users\hero\Desktop\Project\Taillight_Code\stm8_prj\code_iar\Debug\Obj\i2c_analog.o

Plik diff jest za duży
+ 3 - 3
settings/tail_light_stm8.dbgdt


+ 3 - 3
settings/tail_light_stm8.dnx

@@ -69,9 +69,6 @@
         <GraphEnabled>0</GraphEnabled>
         <ShowTimeLog>1</ShowTimeLog>
     </DataSample>
-    <Breakpoints>
-        <Count>0</Count>
-    </Breakpoints>
     <LogFile>
         <LoggingEnabled>_ 0</LoggingEnabled>
         <LogFile>_ ""</LogFile>
@@ -81,6 +78,9 @@
         <LoggingEnabled>_ 0</LoggingEnabled>
         <LogFile>_ ""</LogFile>
     </TermIOLog>
+    <Breakpoints>
+        <Count>0</Count>
+    </Breakpoints>
     <Aliases>
         <A0>_ "C:\Users\hero\Desktop\Taillight_Code\stm8_prj\Code\usr\src\main.c" ""</A0>
         <Count>1</Count>

Plik diff jest za duży
+ 2 - 2
settings/tail_light_stm8.wsdt


+ 246 - 246
tail_light_stm8.dep

@@ -5,118 +5,118 @@
     <configuration>
         <name>Debug</name>
         <outputs>
-            <file>$PROJ_DIR$\Debug\Obj\tasks.pbi</file>
-            <file>$PROJ_DIR$\Debug\Obj\main.pbi</file>
-            <file>$PROJ_DIR$\lib\inc\stm8s_tim1.h</file>
-            <file>$PROJ_DIR$\lib\inc\stm8s_beep.h</file>
-            <file>$PROJ_DIR$\lib\inc\stm8s_exti.h</file>
-            <file>$PROJ_DIR$\lib\inc\stm8s_tim4.h</file>
-            <file>$PROJ_DIR$\Debug\Obj\led.__cstat.et</file>
-            <file>$PROJ_DIR$\Debug\Obj\key.o</file>
-            <file>$PROJ_DIR$\Debug\Obj\hw_init.o</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_exti.o</file>
-            <file>$PROJ_DIR$\usr\inc\system_settings.h</file>
             <file>$PROJ_DIR$\usr\inc\tasks.h</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_clk.__cstat.et</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_tim4.__cstat.et</file>
-            <file>$PROJ_DIR$\Debug\Obj\led.pbi</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_rst.__cstat.et</file>
             <file>$PROJ_DIR$\lib\inc\stm8s_awu.h</file>
             <file>$TOOLKIT_DIR$\inc\c\intrinsics.h</file>
-            <file>$PROJ_DIR$\usr\src\stm8s_it.c</file>
-            <file>$PROJ_DIR$\lib\inc\stm8s_clk.h</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_rst.o</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_it.o</file>
-            <file>$PROJ_DIR$\usr\inc\sc7a20.h</file>
-            <file>$PROJ_DIR$\Debug\Obj\tail_light_stm8.pbd</file>
             <file>$PROJ_DIR$\lib\inc\stm8s_gpio.h</file>
-            <file>$PROJ_DIR$\Debug\Obj\hw_init.pbi</file>
             <file>$PROJ_DIR$\Debug\Obj\stm8s_rst.pbi</file>
             <file>$PROJ_DIR$\Debug\Obj\delay.pbi</file>
+            <file>$PROJ_DIR$\Debug\Obj\stm8s_exti.o</file>
+            <file>$PROJ_DIR$\usr\inc\system_settings.h</file>
+            <file>$PROJ_DIR$\Debug\Obj\stm8s_it.o</file>
+            <file>$PROJ_DIR$\lib\inc\stm8s_beep.h</file>
+            <file>$PROJ_DIR$\lib\inc\stm8s_exti.h</file>
+            <file>$PROJ_DIR$\usr\inc\sc7a20.h</file>
+            <file>$PROJ_DIR$\Debug\Obj\tail_light_stm8.pbd</file>
             <file>$PROJ_DIR$\Debug\Obj\sc7a20.o</file>
             <file>$PROJ_DIR$\Debug\Obj\tasks.__cstat.et</file>
             <file>$PROJ_DIR$\Debug\Obj\tasks.o</file>
             <file>$PROJ_DIR$\Debug\Obj\stm8s_adc1.__cstat.et</file>
-            <file>$PROJ_DIR$\lib\src\stm8s_clk.c</file>
-            <file>$PROJ_DIR$\usr\src\main.c</file>
+            <file>$PROJ_DIR$\Debug\Obj\i2c_analog.pbi</file>
+            <file>$PROJ_DIR$\lib\inc\stm8s_clk.h</file>
+            <file>$PROJ_DIR$\Debug\Obj\hw_init.pbi</file>
+            <file>$PROJ_DIR$\Debug\Obj\stm8s_rst.__cstat.et</file>
+            <file>$PROJ_DIR$\lib\inc\stm8s_tim4.h</file>
+            <file>$PROJ_DIR$\Debug\Obj\key.o</file>
+            <file>$PROJ_DIR$\Debug\Obj\stm8s_rst.o</file>
+            <file>$PROJ_DIR$\lib\inc\stm8s_tim1.h</file>
+            <file>$PROJ_DIR$\Debug\Obj\hw_init.o</file>
+            <file>$PROJ_DIR$\usr\src\stm8s_it.c</file>
+            <file>$TOOLKIT_DIR$\lib\dbgstm8smd.a</file>
+            <file>$PROJ_DIR$\Debug\Obj\stm8s_tim4.__cstat.et</file>
+            <file>$PROJ_DIR$\Debug\Obj\led.__cstat.et</file>
+            <file>$PROJ_DIR$\Debug\Obj\stm8s_clk.__cstat.et</file>
+            <file>$PROJ_DIR$\Debug\Obj\led.pbi</file>
+            <file>$PROJ_DIR$\lib\src\stm8s_rst.c</file>
+            <file>$PROJ_DIR$\lib\src\stm8s_tim1.c</file>
+            <file>$PROJ_DIR$\usr\src\hw_init.c</file>
             <file>$PROJ_DIR$\usr\src\i2c_analog.c</file>
-            <file>$PROJ_DIR$\usr\src\sc7a20.c</file>
             <file>$PROJ_DIR$\lib\src\stm8s_tim4.c</file>
-            <file>$PROJ_DIR$\lib\src\stm8s_rst.c</file>
-            <file>$PROJ_DIR$\usr\src\tasks.c</file>
-            <file>$PROJ_DIR$\usr\src\led.c</file>
             <file>$PROJ_DIR$\lib\src\stm8s_gpio.c</file>
-            <file>$PROJ_DIR$\usr\src\delay.c</file>
             <file>$PROJ_DIR$\usr\src\key.c</file>
-            <file>$PROJ_DIR$\lib\src\stm8s_adc1.c</file>
-            <file>$PROJ_DIR$\Debug\Obj\i2c_analog.pbi</file>
-            <file>$TOOLKIT_DIR$\lib\dbgstm8smd.a</file>
-            <file>$PROJ_DIR$\lib\src\stm8s_tim1.c</file>
+            <file>$PROJ_DIR$\usr\src\led.c</file>
             <file>$PROJ_DIR$\lib\src\stm8s_tim2.c</file>
+            <file>$PROJ_DIR$\usr\src\main.c</file>
+            <file>$PROJ_DIR$\lib\src\stm8s_adc1.c</file>
+            <file>$PROJ_DIR$\usr\src\sc7a20.c</file>
+            <file>$PROJ_DIR$\usr\src\delay.c</file>
+            <file>$PROJ_DIR$\usr\src\tasks.c</file>
+            <file>$PROJ_DIR$\Debug\Obj\tasks.pbi</file>
+            <file>$PROJ_DIR$\Debug\Obj\main.pbi</file>
             <file>$PROJ_DIR$\lib\src\stm8s_exti.c</file>
-            <file>$PROJ_DIR$\usr\src\hw_init.c</file>
+            <file>$PROJ_DIR$\lib\src\stm8s_clk.c</file>
+            <file>$PROJ_DIR$\Debug\Exe\tail_light_stm8.out</file>
+            <file>$PROJ_DIR$\Debug\Obj\led.o</file>
+            <file>$PROJ_DIR$\Debug\Obj\stm8s_tim2.o</file>
+            <file>$PROJ_DIR$\Debug\Obj\i2c_analog.o</file>
+            <file>$PROJ_DIR$\Debug\Obj\stm8s_it.pbi</file>
+            <file>$PROJ_DIR$\lib\inc\stm8s_tim2.h</file>
+            <file>$PROJ_DIR$\Debug\Obj\stm8s_clk.pbi</file>
+            <file>$PROJ_DIR$\Debug\Obj\key.pbi</file>
+            <file>$PROJ_DIR$\lib\inc\stm8s_wwdg.h</file>
+            <file>$PROJ_DIR$\Debug\Obj\stm8s_tim1.pbi</file>
+            <file>$PROJ_DIR$\usr\inc\led.h</file>
+            <file>$PROJ_DIR$\Debug\Obj\stm8s_tim4.o</file>
+            <file>$PROJ_DIR$\Debug\Obj\stm8s_tim1.o</file>
+            <file>$PROJ_DIR$\Debug\Obj\stm8s_tim1.__cstat.et</file>
+            <file>$TOOLKIT_DIR$\config\lnkstm8s003f3.icf</file>
+            <file>$PROJ_DIR$\Debug\Obj\stm8s_tim4.pbi</file>
+            <file>$PROJ_DIR$\lib\inc\stm8s_spi.h</file>
+            <file>$PROJ_DIR$\Debug\Obj\stm8s_exti.__cstat.et</file>
+            <file>$TOOLKIT_DIR$\lib\dlstm8smn.a</file>
+            <file>$PROJ_DIR$\lib\inc\stm8s_adc1.h</file>
+            <file>$PROJ_DIR$\Debug\Obj\hw_init.__cstat.et</file>
+            <file>$PROJ_DIR$\lib\inc\stm8s_i2c.h</file>
+            <file>$PROJ_DIR$\Debug\Obj\delay.__cstat.et</file>
+            <file>$PROJ_DIR$\Debug\Obj\stm8s_tim2.__cstat.et</file>
+            <file>$PROJ_DIR$\usr\inc\delay.h</file>
+            <file>$PROJ_DIR$\usr\inc\hw_init.h</file>
+            <file>$PROJ_DIR$\Debug\Obj\delay.o</file>
+            <file>$PROJ_DIR$\usr\inc\key.h</file>
             <file>$PROJ_DIR$\Debug\Obj\stm8s_gpio.o</file>
-            <file>$PROJ_DIR$\Debug\Obj\main.__cstat.et</file>
-            <file>$PROJ_DIR$\Debug\List\tail_light_stm8.map</file>
+            <file>$PROJ_DIR$\Debug\Obj\i2c_analog.__cstat.et</file>
+            <file>$PROJ_DIR$\Debug\Obj\stm8s_it.__cstat.et</file>
+            <file>$PROJ_DIR$\Debug\Obj\stm8s_exti.pbi</file>
+            <file>$PROJ_DIR$\Debug\Obj\sc7a20.pbi</file>
             <file>$PROJ_DIR$\Debug\Obj\main.o</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_gpio.pbi</file>
             <file>$PROJ_DIR$\lib\inc\stm8s_iwdg.h</file>
+            <file>$PROJ_DIR$\Debug\Obj\stm8s_gpio.pbi</file>
             <file>$PROJ_DIR$\usr\inc\stm8s_conf.h</file>
-            <file>$PROJ_DIR$\usr\inc\stm8s_it.h</file>
-            <file>$PROJ_DIR$\lib\inc\stm8s_rst.h</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_it.__cstat.et</file>
-            <file>$PROJ_DIR$\Debug\Obj\i2c_analog.__cstat.et</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_exti.pbi</file>
-            <file>$PROJ_DIR$\usr\inc\hw_init.h</file>
-            <file>$PROJ_DIR$\Debug\Exe\tail_light_stm8.hex</file>
             <file>$PROJ_DIR$\usr\inc\i2c_analog.h</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_adc1.o</file>
             <file>$PROJ_DIR$\Debug\Obj\stm8s_gpio.__cstat.et</file>
-            <file>$PROJ_DIR$\lib\inc\stm8s.h</file>
             <file>$PROJ_DIR$\lib\inc\stm8s_itc.h</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_tim2.pbi</file>
-            <file>$PROJ_DIR$\Debug\Obj\sc7a20.pbi</file>
-            <file>$PROJ_DIR$\usr\inc\delay.h</file>
             <file>$PROJ_DIR$\Debug\Obj\stm8s_clk.o</file>
-            <file>$PROJ_DIR$\lib\inc\stm8s_uart1.h</file>
-            <file>$PROJ_DIR$\Debug\Obj\key.__cstat.et</file>
             <file>$PROJ_DIR$\Debug\Obj\sc7a20.__cstat.et</file>
-            <file>$PROJ_DIR$\Debug\Obj\delay.o</file>
+            <file>$PROJ_DIR$\Debug\Obj\key.__cstat.et</file>
             <file>$PROJ_DIR$\Debug\Obj\stm8s_adc1.pbi</file>
             <file>$PROJ_DIR$\usr\inc\math.h</file>
-            <file>$PROJ_DIR$\usr\inc\key.h</file>
+            <file>$PROJ_DIR$\Debug\Obj\stm8s_tim2.pbi</file>
+            <file>$PROJ_DIR$\lib\inc\stm8s_uart1.h</file>
             <file>$PROJ_DIR$\lib\inc\stm8s_flash.h</file>
-            <file>$PROJ_DIR$\Debug\Obj\led.o</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_tim1.pbi</file>
-            <file>$PROJ_DIR$\Debug\Obj\key.pbi</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_tim2.__cstat.et</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_tim4.o</file>
-            <file>$TOOLKIT_DIR$\lib\dlstm8smn.a</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_tim1.o</file>
-            <file>$PROJ_DIR$\Debug\Exe\tail_light_stm8.out</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_tim4.pbi</file>
-            <file>$PROJ_DIR$\Debug\Obj\hw_init.__cstat.et</file>
-            <file>$PROJ_DIR$\lib\inc\stm8s_wwdg.h</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_tim2.o</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_tim1.__cstat.et</file>
-            <file>$PROJ_DIR$\Debug\Obj\i2c_analog.o</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_clk.pbi</file>
-            <file>$PROJ_DIR$\usr\inc\led.h</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_it.pbi</file>
-            <file>$TOOLKIT_DIR$\config\lnkstm8s003f3.icf</file>
-            <file>$PROJ_DIR$\lib\inc\stm8s_adc1.h</file>
-            <file>$PROJ_DIR$\Debug\Obj\delay.__cstat.et</file>
-            <file>$PROJ_DIR$\lib\inc\stm8s_i2c.h</file>
-            <file>$PROJ_DIR$\lib\inc\stm8s_spi.h</file>
-            <file>$PROJ_DIR$\lib\inc\stm8s_tim2.h</file>
-            <file>$PROJ_DIR$\Debug\Obj\stm8s_exti.__cstat.et</file>
+            <file>$PROJ_DIR$\Debug\Obj\stm8s_adc1.o</file>
+            <file>$PROJ_DIR$\lib\inc\stm8s.h</file>
+            <file>$PROJ_DIR$\Debug\List\tail_light_stm8.map</file>
+            <file>$PROJ_DIR$\Debug\Obj\main.__cstat.et</file>
+            <file>$PROJ_DIR$\usr\inc\stm8s_it.h</file>
+            <file>$PROJ_DIR$\lib\inc\stm8s_rst.h</file>
+            <file>$PROJ_DIR$\Debug\Exe\tail_light_stm8.hex</file>
         </outputs>
         <file>
             <name>[ROOT_NODE]</name>
             <outputs>
                 <tool>
                     <name>ILINK</name>
-                    <file> 88 52</file>
+                    <file> 50 100</file>
                 </tool>
             </outputs>
         </file>
@@ -124,134 +124,134 @@
             <name>$PROJ_DIR$\usr\src\stm8s_it.c</name>
             <outputs>
                 <tool>
-                    <name>ICCSTM8</name>
-                    <file> 21</file>
+                    <name>__cstat</name>
+                    <file> 80</file>
                 </tool>
                 <tool>
                     <name>BICOMP</name>
-                    <file> 97</file>
+                    <file> 54</file>
                 </tool>
                 <tool>
-                    <name>__cstat</name>
-                    <file> 59</file>
+                    <name>ICCSTM8</name>
+                    <file> 8</file>
                 </tool>
             </outputs>
             <inputs>
                 <tool>
-                    <name>ICCSTM8</name>
-                    <file> 57 67 56 99 16 3 19 4 80 24 101 68 55 58 102 2 103 5 73 91 17</file>
+                    <name>BICOMP</name>
+                    <file> 3 99 21 9 103 86 69 10 89 24 96 2 1 18 97 71 84 66 55 58 102</file>
                 </tool>
                 <tool>
-                    <name>BICOMP</name>
-                    <file> 24 67 5 3 58 56 99 4 68 2 73 17 16 19 80 101 55 102 103 91 57</file>
+                    <name>ICCSTM8</name>
+                    <file> 102 99 86 69 1 9 18 10 97 3 71 89 84 103 66 24 55 21 96 58 2</file>
                 </tool>
             </inputs>
         </file>
         <file>
-            <name>$PROJ_DIR$\lib\src\stm8s_clk.c</name>
+            <name>$PROJ_DIR$\lib\src\stm8s_rst.c</name>
             <outputs>
                 <tool>
-                    <name>ICCSTM8</name>
-                    <file> 72</file>
+                    <name>__cstat</name>
+                    <file> 20</file>
                 </tool>
                 <tool>
                     <name>BICOMP</name>
-                    <file> 95</file>
+                    <file> 4</file>
                 </tool>
                 <tool>
-                    <name>__cstat</name>
-                    <file> 12</file>
+                    <name>ICCSTM8</name>
+                    <file> 23</file>
                 </tool>
             </outputs>
             <inputs>
                 <tool>
-                    <name>ICCSTM8</name>
-                    <file> 19 67 56 99 16 3 4 80 24 101 68 55 58 102 2 103 5 73 91 17</file>
+                    <name>BICOMP</name>
+                    <file> 71 18 66 2 1 97 84 55 58 99 86 69 9 10 3 89 103 24 21 96</file>
                 </tool>
                 <tool>
-                    <name>BICOMP</name>
-                    <file> 101 19 102 67 17 16 80 55 103 91 56 99 3 4 24 68 58 2 5 73</file>
+                    <name>ICCSTM8</name>
+                    <file> 103 99 86 69 1 9 18 10 97 3 71 89 84 66 24 55 21 96 58 2</file>
                 </tool>
             </inputs>
         </file>
         <file>
-            <name>$PROJ_DIR$\usr\src\main.c</name>
+            <name>$PROJ_DIR$\lib\src\stm8s_tim1.c</name>
             <outputs>
                 <tool>
-                    <name>ICCSTM8</name>
-                    <file> 53</file>
+                    <name>__cstat</name>
+                    <file> 63</file>
                 </tool>
                 <tool>
                     <name>BICOMP</name>
-                    <file> 1</file>
+                    <file> 59</file>
                 </tool>
                 <tool>
-                    <name>__cstat</name>
-                    <file> 51</file>
+                    <name>ICCSTM8</name>
+                    <file> 62</file>
                 </tool>
             </outputs>
             <inputs>
                 <tool>
-                    <name>ICCSTM8</name>
-                    <file> 67 56 99 16 3 19 4 80 24 101 68 55 58 102 2 103 5 73 91 17 62 22 79 96 11 71</file>
+                    <name>BICOMP</name>
+                    <file> 99 21 3 9 103 86 69 10 89 24 96 2 1 18 97 71 84 66 55 58</file>
                 </tool>
                 <tool>
-                    <name>BICOMP</name>
-                    <file> 101 67 96 19 102 22 71 17 16 80 55 103 91 62 79 11 56 99 3 4 24 68 58 2 5 73</file>
+                    <name>ICCSTM8</name>
+                    <file> 24 99 86 69 1 9 18 10 97 3 71 89 84 103 66 55 21 96 58 2</file>
                 </tool>
             </inputs>
         </file>
         <file>
-            <name>$PROJ_DIR$\usr\src\i2c_analog.c</name>
+            <name>$PROJ_DIR$\usr\src\hw_init.c</name>
             <outputs>
                 <tool>
-                    <name>ICCSTM8</name>
-                    <file> 94</file>
+                    <name>__cstat</name>
+                    <file> 70</file>
                 </tool>
                 <tool>
                     <name>BICOMP</name>
-                    <file> 44</file>
+                    <file> 19</file>
                 </tool>
                 <tool>
-                    <name>__cstat</name>
-                    <file> 60</file>
+                    <name>ICCSTM8</name>
+                    <file> 25</file>
                 </tool>
             </outputs>
             <inputs>
                 <tool>
-                    <name>ICCSTM8</name>
-                    <file> 64 67 56 99 16 3 19 4 80 24 101 68 55 58 102 2 103 5 73 91 17</file>
+                    <name>BICOMP</name>
+                    <file> 89 69 96 99 86 10 24 9 3 103 21 75 2 1 18 97 71 84 66 55 58</file>
                 </tool>
                 <tool>
-                    <name>BICOMP</name>
-                    <file> 4 56 2 99 68 73 67 3 24 58 5 17 16 19 80 101 55 102 103 91 64</file>
+                    <name>ICCSTM8</name>
+                    <file> 99 86 69 1 9 18 10 97 3 71 89 84 103 66 24 55 21 96 58 2 75</file>
                 </tool>
             </inputs>
         </file>
         <file>
-            <name>$PROJ_DIR$\usr\src\sc7a20.c</name>
+            <name>$PROJ_DIR$\usr\src\i2c_analog.c</name>
             <outputs>
                 <tool>
-                    <name>ICCSTM8</name>
-                    <file> 28</file>
+                    <name>__cstat</name>
+                    <file> 79</file>
                 </tool>
                 <tool>
                     <name>BICOMP</name>
-                    <file> 70</file>
+                    <file> 17</file>
                 </tool>
                 <tool>
-                    <name>__cstat</name>
-                    <file> 75</file>
+                    <name>ICCSTM8</name>
+                    <file> 53</file>
                 </tool>
             </outputs>
             <inputs>
                 <tool>
-                    <name>ICCSTM8</name>
-                    <file> 22 67 56 99 16 3 19 4 80 24 101 68 55 58 102 2 103 5 73 91 17 64 71</file>
+                    <name>BICOMP</name>
+                    <file> 10 86 24 69 89 96 99 9 3 103 21 2 1 18 97 71 84 66 55 58 87</file>
                 </tool>
                 <tool>
-                    <name>BICOMP</name>
-                    <file> 99 73 68 67 56 4 2 71 3 24 58 5 64 17 16 19 80 101 55 102 103 91 22</file>
+                    <name>ICCSTM8</name>
+                    <file> 87 99 86 69 1 9 18 10 97 3 71 89 84 103 66 24 55 21 96 58 2</file>
                 </tool>
             </inputs>
         </file>
@@ -259,80 +259,80 @@
             <name>$PROJ_DIR$\lib\src\stm8s_tim4.c</name>
             <outputs>
                 <tool>
-                    <name>ICCSTM8</name>
-                    <file> 85</file>
+                    <name>__cstat</name>
+                    <file> 28</file>
                 </tool>
                 <tool>
                     <name>BICOMP</name>
-                    <file> 89</file>
+                    <file> 65</file>
                 </tool>
                 <tool>
-                    <name>__cstat</name>
-                    <file> 13</file>
+                    <name>ICCSTM8</name>
+                    <file> 61</file>
                 </tool>
             </outputs>
             <inputs>
                 <tool>
-                    <name>ICCSTM8</name>
-                    <file> 5 67 56 99 16 3 19 4 80 24 101 68 55 58 102 2 103 73 91 17</file>
+                    <name>BICOMP</name>
+                    <file> 66 18 99 71 2 1 97 84 55 58 86 69 9 10 3 89 103 24 21 96</file>
                 </tool>
                 <tool>
-                    <name>BICOMP</name>
-                    <file> 102 19 67 101 17 16 80 55 103 91 56 99 3 4 24 68 58 2 5 73</file>
+                    <name>ICCSTM8</name>
+                    <file> 21 99 86 69 1 9 18 10 97 3 71 89 84 103 66 24 55 96 58 2</file>
                 </tool>
             </inputs>
         </file>
         <file>
-            <name>$PROJ_DIR$\lib\src\stm8s_rst.c</name>
+            <name>$PROJ_DIR$\lib\src\stm8s_gpio.c</name>
             <outputs>
                 <tool>
-                    <name>ICCSTM8</name>
-                    <file> 20</file>
+                    <name>__cstat</name>
+                    <file> 88</file>
                 </tool>
                 <tool>
                     <name>BICOMP</name>
-                    <file> 26</file>
+                    <file> 85</file>
                 </tool>
                 <tool>
-                    <name>__cstat</name>
-                    <file> 15</file>
+                    <name>ICCSTM8</name>
+                    <file> 78</file>
                 </tool>
             </outputs>
             <inputs>
                 <tool>
-                    <name>ICCSTM8</name>
-                    <file> 58 67 56 99 16 3 19 4 80 24 101 68 55 102 2 103 5 73 91 17</file>
+                    <name>BICOMP</name>
+                    <file> 99 18 66 71 2 1 97 84 55 58 86 69 9 10 3 89 103 24 21 96</file>
                 </tool>
                 <tool>
-                    <name>BICOMP</name>
-                    <file> 101 19 102 17 16 80 55 103 91 67 56 99 3 4 24 68 58 2 5 73</file>
+                    <name>ICCSTM8</name>
+                    <file> 3 99 86 69 1 9 18 10 97 71 89 84 103 66 24 55 21 96 58 2</file>
                 </tool>
             </inputs>
         </file>
         <file>
-            <name>$PROJ_DIR$\usr\src\tasks.c</name>
+            <name>$PROJ_DIR$\usr\src\key.c</name>
             <outputs>
                 <tool>
-                    <name>ICCSTM8</name>
-                    <file> 30</file>
+                    <name>__cstat</name>
+                    <file> 92</file>
                 </tool>
                 <tool>
                     <name>BICOMP</name>
-                    <file> 0</file>
+                    <file> 57</file>
                 </tool>
                 <tool>
-                    <name>__cstat</name>
-                    <file> 29</file>
+                    <name>ICCSTM8</name>
+                    <file> 22</file>
                 </tool>
             </outputs>
             <inputs>
                 <tool>
-                    <name>ICCSTM8</name>
-                    <file> 10 67 56 99 16 3 19 4 80 24 101 68 55 58 102 2 103 5 73 91 17 96 79 62 22 78 71</file>
+                    <name>BICOMP</name>
+                    <file> 9 103 99 3 21 86 69 10 89 24 96 7 2 1 18 97 71 84 66 55 58 77</file>
                 </tool>
                 <tool>
-                    <name>BICOMP</name>
-                    <file> 67 4 22 56 2 79 71 99 68 73 96 62 78 3 24 58 5 10 17 16 19 80 101 55 102 103 91</file>
+                    <name>ICCSTM8</name>
+                    <file> 77 99 86 69 1 9 18 10 97 3 71 89 84 103 66 24 55 21 96 58 2 7</file>
                 </tool>
             </inputs>
         </file>
@@ -340,188 +340,188 @@
             <name>$PROJ_DIR$\usr\src\led.c</name>
             <outputs>
                 <tool>
-                    <name>ICCSTM8</name>
-                    <file> 81</file>
+                    <name>__cstat</name>
+                    <file> 29</file>
                 </tool>
                 <tool>
                     <name>BICOMP</name>
-                    <file> 14</file>
+                    <file> 31</file>
                 </tool>
                 <tool>
-                    <name>__cstat</name>
-                    <file> 6</file>
+                    <name>ICCSTM8</name>
+                    <file> 51</file>
                 </tool>
             </outputs>
             <inputs>
                 <tool>
-                    <name>ICCSTM8</name>
-                    <file> 96 67 56 99 16 3 19 4 80 24 101 68 55 58 102 2 103 5 73 91 17</file>
+                    <name>BICOMP</name>
+                    <file> 10 86 24 69 89 96 99 9 3 103 21 2 1 18 97 71 84 66 55 58 60</file>
                 </tool>
                 <tool>
-                    <name>BICOMP</name>
-                    <file> 4 56 2 99 68 73 67 3 24 58 5 17 16 19 80 101 55 102 103 91 96</file>
+                    <name>ICCSTM8</name>
+                    <file> 60 99 86 69 1 9 18 10 97 3 71 89 84 103 66 24 55 21 96 58 2</file>
                 </tool>
             </inputs>
         </file>
         <file>
-            <name>$PROJ_DIR$\lib\src\stm8s_gpio.c</name>
+            <name>$PROJ_DIR$\lib\src\stm8s_tim2.c</name>
             <outputs>
                 <tool>
-                    <name>ICCSTM8</name>
-                    <file> 50</file>
+                    <name>__cstat</name>
+                    <file> 73</file>
                 </tool>
                 <tool>
                     <name>BICOMP</name>
-                    <file> 54</file>
+                    <file> 95</file>
                 </tool>
                 <tool>
-                    <name>__cstat</name>
-                    <file> 66</file>
+                    <name>ICCSTM8</name>
+                    <file> 52</file>
                 </tool>
             </outputs>
             <inputs>
                 <tool>
-                    <name>ICCSTM8</name>
-                    <file> 24 67 56 99 16 3 19 4 80 101 68 55 58 102 2 103 5 73 91 17</file>
+                    <name>BICOMP</name>
+                    <file> 99 9 103 3 21 86 69 10 89 24 96 55 2 1 18 97 71 84 66 58</file>
                 </tool>
                 <tool>
-                    <name>BICOMP</name>
-                    <file> 67 19 102 101 17 16 80 55 103 91 56 99 3 4 24 68 58 2 5 73</file>
+                    <name>ICCSTM8</name>
+                    <file> 55 99 86 69 1 9 18 10 97 3 71 89 84 103 66 24 21 96 58 2</file>
                 </tool>
             </inputs>
         </file>
         <file>
-            <name>$PROJ_DIR$\usr\src\delay.c</name>
+            <name>$PROJ_DIR$\usr\src\main.c</name>
             <outputs>
                 <tool>
-                    <name>ICCSTM8</name>
-                    <file> 76</file>
+                    <name>__cstat</name>
+                    <file> 101</file>
                 </tool>
                 <tool>
                     <name>BICOMP</name>
-                    <file> 27</file>
+                    <file> 47</file>
                 </tool>
                 <tool>
-                    <name>__cstat</name>
-                    <file> 100</file>
+                    <name>ICCSTM8</name>
+                    <file> 83</file>
                 </tool>
             </outputs>
             <inputs>
                 <tool>
-                    <name>ICCSTM8</name>
-                    <file> 71 67 56 99 16 3 19 4 80 24 101 68 55 58 102 2 103 5 73 91 17</file>
+                    <name>BICOMP</name>
+                    <file> 71 99 60 18 66 11 74 2 1 97 84 55 58 75 77 0 86 69 9 10 3 89 103 24 21 96</file>
                 </tool>
                 <tool>
-                    <name>BICOMP</name>
-                    <file> 101 19 102 17 16 80 55 103 91 67 56 99 3 4 24 68 58 2 5 73 71</file>
+                    <name>ICCSTM8</name>
+                    <file> 99 86 69 1 9 18 10 97 3 71 89 84 103 66 24 55 21 96 58 2 75 11 77 60 0 74</file>
                 </tool>
             </inputs>
         </file>
         <file>
-            <name>$PROJ_DIR$\usr\src\key.c</name>
+            <name>$PROJ_DIR$\lib\src\stm8s_adc1.c</name>
             <outputs>
                 <tool>
-                    <name>ICCSTM8</name>
-                    <file> 7</file>
+                    <name>__cstat</name>
+                    <file> 16</file>
                 </tool>
                 <tool>
                     <name>BICOMP</name>
-                    <file> 83</file>
+                    <file> 93</file>
                 </tool>
                 <tool>
-                    <name>__cstat</name>
-                    <file> 74</file>
+                    <name>ICCSTM8</name>
+                    <file> 98</file>
                 </tool>
             </outputs>
             <inputs>
                 <tool>
-                    <name>ICCSTM8</name>
-                    <file> 79 67 56 99 16 3 19 4 80 24 101 68 55 58 102 2 103 5 73 91 17 10</file>
+                    <name>BICOMP</name>
+                    <file> 10 86 24 69 89 96 99 9 3 103 21 2 1 18 97 71 84 66 55 58</file>
                 </tool>
                 <tool>
-                    <name>BICOMP</name>
-                    <file> 3 58 67 24 5 56 99 4 68 2 73 10 17 16 19 80 101 55 102 103 91 79</file>
+                    <name>ICCSTM8</name>
+                    <file> 69 99 86 1 9 18 10 97 3 71 89 84 103 66 24 55 21 96 58 2</file>
                 </tool>
             </inputs>
         </file>
         <file>
-            <name>$PROJ_DIR$\lib\src\stm8s_adc1.c</name>
+            <name>$PROJ_DIR$\usr\src\sc7a20.c</name>
             <outputs>
                 <tool>
-                    <name>ICCSTM8</name>
-                    <file> 65</file>
+                    <name>__cstat</name>
+                    <file> 91</file>
                 </tool>
                 <tool>
                     <name>BICOMP</name>
-                    <file> 77</file>
+                    <file> 82</file>
                 </tool>
                 <tool>
-                    <name>__cstat</name>
-                    <file> 31</file>
+                    <name>ICCSTM8</name>
+                    <file> 13</file>
                 </tool>
             </outputs>
             <inputs>
                 <tool>
-                    <name>ICCSTM8</name>
-                    <file> 99 67 56 16 3 19 4 80 24 101 68 55 58 102 2 103 5 73 91 17</file>
+                    <name>BICOMP</name>
+                    <file> 69 96 89 99 86 10 24 74 9 3 103 21 87 2 1 18 97 71 84 66 55 58 11</file>
                 </tool>
                 <tool>
-                    <name>BICOMP</name>
-                    <file> 4 56 2 99 68 73 67 3 24 58 5 17 16 19 80 101 55 102 103 91</file>
+                    <name>ICCSTM8</name>
+                    <file> 11 99 86 69 1 9 18 10 97 3 71 89 84 103 66 24 55 21 96 58 2 87 74</file>
                 </tool>
             </inputs>
         </file>
         <file>
-            <name>$PROJ_DIR$\lib\src\stm8s_tim1.c</name>
+            <name>$PROJ_DIR$\usr\src\delay.c</name>
             <outputs>
                 <tool>
-                    <name>ICCSTM8</name>
-                    <file> 87</file>
+                    <name>__cstat</name>
+                    <file> 72</file>
                 </tool>
                 <tool>
                     <name>BICOMP</name>
-                    <file> 82</file>
+                    <file> 5</file>
                 </tool>
                 <tool>
-                    <name>__cstat</name>
-                    <file> 93</file>
+                    <name>ICCSTM8</name>
+                    <file> 76</file>
                 </tool>
             </outputs>
             <inputs>
                 <tool>
-                    <name>ICCSTM8</name>
-                    <file> 2 67 56 99 16 3 19 4 80 24 101 68 55 58 102 103 5 73 91 17</file>
+                    <name>BICOMP</name>
+                    <file> 71 18 66 2 1 97 84 55 58 99 86 69 9 10 3 89 103 24 21 96 74</file>
                 </tool>
                 <tool>
-                    <name>BICOMP</name>
-                    <file> 67 5 24 3 58 56 99 4 68 2 73 17 16 19 80 101 55 102 103 91</file>
+                    <name>ICCSTM8</name>
+                    <file> 74 99 86 69 1 9 18 10 97 3 71 89 84 103 66 24 55 21 96 58 2</file>
                 </tool>
             </inputs>
         </file>
         <file>
-            <name>$PROJ_DIR$\lib\src\stm8s_tim2.c</name>
+            <name>$PROJ_DIR$\usr\src\tasks.c</name>
             <outputs>
                 <tool>
-                    <name>ICCSTM8</name>
-                    <file> 92</file>
+                    <name>__cstat</name>
+                    <file> 14</file>
                 </tool>
                 <tool>
                     <name>BICOMP</name>
-                    <file> 69</file>
+                    <file> 46</file>
                 </tool>
                 <tool>
-                    <name>__cstat</name>
-                    <file> 84</file>
+                    <name>ICCSTM8</name>
+                    <file> 15</file>
                 </tool>
             </outputs>
             <inputs>
                 <tool>
-                    <name>ICCSTM8</name>
-                    <file> 103 67 56 99 16 3 19 4 80 24 101 68 55 58 102 2 5 73 91 17</file>
+                    <name>BICOMP</name>
+                    <file> 99 10 11 86 24 77 74 69 89 96 60 75 94 9 3 103 21 7 2 1 18 97 71 84 66 55 58</file>
                 </tool>
                 <tool>
-                    <name>BICOMP</name>
-                    <file> 67 3 58 24 5 56 99 4 68 2 73 103 17 16 19 80 101 55 102 91</file>
+                    <name>ICCSTM8</name>
+                    <file> 7 99 86 69 1 9 18 10 97 3 71 89 84 103 66 24 55 21 96 58 2 60 77 75 11 94 74</file>
                 </tool>
             </inputs>
         </file>
@@ -529,53 +529,53 @@
             <name>$PROJ_DIR$\lib\src\stm8s_exti.c</name>
             <outputs>
                 <tool>
-                    <name>ICCSTM8</name>
-                    <file> 9</file>
+                    <name>__cstat</name>
+                    <file> 67</file>
                 </tool>
                 <tool>
                     <name>BICOMP</name>
-                    <file> 61</file>
+                    <file> 81</file>
                 </tool>
                 <tool>
-                    <name>__cstat</name>
-                    <file> 104</file>
+                    <name>ICCSTM8</name>
+                    <file> 6</file>
                 </tool>
             </outputs>
             <inputs>
                 <tool>
-                    <name>ICCSTM8</name>
-                    <file> 4 67 56 99 16 3 19 80 24 101 68 55 58 102 2 103 5 73 91 17</file>
+                    <name>BICOMP</name>
+                    <file> 24 86 10 69 89 96 99 9 3 103 21 2 1 18 97 71 84 66 55 58</file>
                 </tool>
                 <tool>
-                    <name>BICOMP</name>
-                    <file> 2 56 4 99 68 73 67 3 24 58 5 17 16 19 80 101 55 102 103 91</file>
+                    <name>ICCSTM8</name>
+                    <file> 10 99 86 69 1 9 18 97 3 71 89 84 103 66 24 55 21 96 58 2</file>
                 </tool>
             </inputs>
         </file>
         <file>
-            <name>$PROJ_DIR$\usr\src\hw_init.c</name>
+            <name>$PROJ_DIR$\lib\src\stm8s_clk.c</name>
             <outputs>
                 <tool>
-                    <name>ICCSTM8</name>
-                    <file> 8</file>
+                    <name>__cstat</name>
+                    <file> 30</file>
                 </tool>
                 <tool>
                     <name>BICOMP</name>
-                    <file> 25</file>
+                    <file> 56</file>
                 </tool>
                 <tool>
-                    <name>__cstat</name>
+                    <name>ICCSTM8</name>
                     <file> 90</file>
                 </tool>
             </outputs>
             <inputs>
                 <tool>
-                    <name>ICCSTM8</name>
-                    <file> 67 56 99 16 3 19 4 80 24 101 68 55 58 102 2 103 5 73 91 17 62</file>
+                    <name>BICOMP</name>
+                    <file> 71 18 66 99 2 1 97 84 55 58 86 69 9 10 3 89 103 24 21 96</file>
                 </tool>
                 <tool>
-                    <name>BICOMP</name>
-                    <file> 68 99 73 67 56 4 2 3 24 58 5 62 17 16 19 80 101 55 102 103 91</file>
+                    <name>ICCSTM8</name>
+                    <file> 18 99 86 69 1 9 10 97 3 71 89 84 103 66 24 55 21 96 58 2</file>
                 </tool>
             </inputs>
         </file>
@@ -584,17 +584,17 @@
             <outputs>
                 <tool>
                     <name>OBJCOPY</name>
-                    <file> 63</file>
+                    <file> 104</file>
                 </tool>
                 <tool>
                     <name>ILINK</name>
-                    <file> 52</file>
+                    <file> 100</file>
                 </tool>
             </outputs>
             <inputs>
                 <tool>
                     <name>ILINK</name>
-                    <file> 98 76 8 94 7 81 53 28 65 72 9 50 20 87 92 85 30 86 45</file>
+                    <file> 64 76 25 53 22 51 83 13 98 90 6 78 23 62 52 61 15 68 27</file>
                 </tool>
             </inputs>
         </file>

+ 2 - 2
usr/src/tasks.c

@@ -345,7 +345,7 @@ void taskB(void)//20ms
       }      
       Acc_z_Sum1 += ((Acc_z_New << 4) - Acc_z_Sum1) >> 7;//截止频率50Hz/127
       Acc_z_Flt1 = Acc_z_Sum1 >> 4;
-      Acc_z_Sum2 += ((Acc_z_New << 4) - Acc_z_Sum2) >> 3;//截止频率50Hz/7
+      Acc_z_Sum2 += ((Acc_z_New << 4) - Acc_z_Sum2) >> 2;//截止频率50Hz/7
       Acc_z_Flt2 = Acc_z_Sum2 >> 4;
       
       //刹车判断
@@ -355,7 +355,7 @@ void taskB(void)//20ms
         {
           if((Acc_z_Flt2 > -724) && (Acc_z_Flt2 < 724)) //只考虑45°内坡
           {
-            if(Acc_z_Flt2 > (Acc_z_Flt1 + 150)) // 刹车z轴负方向变化,z轴水平,20km/h在5s内刹停,gz=20000/3600/5/9.8=113mg
+            if(Acc_z_Flt2 > (Acc_z_Flt1 + 200)) // 刹车z轴负方向变化,z轴水平,20km/h在5s内刹停,gz=20000/3600/5/9.8=113mg
             {
               BreakFlag = 1;
               Light_ModeBreak_PeriodCnt = 0;

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików