Ver código fonte

修改电量计算曲线。

Deyauo 3 meses atrás
pai
commit
25f96da494

+ 1 - 1
Debug/Exe/tail_light_stm8.hex

@@ -17,7 +17,7 @@
 :108100000047725F0071CE0045A3034D250635641C
 :108110000072202ACE0045A302AE2406725F0072D0
 :10812000201CCE00451CFD53BF025FBF00CD87ADB4
-:1081300000000218A60ACD88ACB603C70072C600BC
+:1081300000000280A60ACD88ACB603C70072C60054
 :108140006E4D2628C60072C100122518C600123FC7
 :1081500000B701C600725F9772B00000A300152E31
 :1081600003CC82F75500720012CC82F7C60012C110

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                     23/Apr/2025  21:21:22
+# IAR ELF Linker V3.10.1.201 for STM8                     28/Apr/2025  07:52:27
 # 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\EW3A9C.tmp
+#        -f C:\Users\hero\AppData\Local\Temp\EWB318.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

Diferenças do arquivo suprimidas por serem muito extensas
+ 5 - 5
settings/tail_light_stm8.wsdt


+ 183 - 183
tail_light_stm8.dep

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

+ 1 - 1
usr/src/tasks.c

@@ -421,7 +421,7 @@ void taskC(void)//50ms
         }
         if(AD_Vin >= 845) Bat_Soc_New = 100;      //4.00V
         else if(AD_Vin <= 685) Bat_Soc_New = 0;   //3.25V
-        else Bat_Soc_New = ((uint32_t)(AD_Vin - 685) * 536) >> 10;
+        else Bat_Soc_New = ((uint32_t)(AD_Vin - 685) * 640) >> 10;
         //电量增减处理
         if(Chg_Flag == 0) //放电:电量减小或电量上升超过20%时更新
         {

Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff