Ver código fonte

Исправил последствия git revert.

Vladimir N. Shilov 9 anos atrás
pai
commit
97b7518f25
8 arquivos alterados com 1074 adições e 405 exclusões
  1. 136 1
      EWSTM8/settings/vapc-meter.dbgdt
  2. 17 0
      EWSTM8/settings/vapc-meter.dni
  3. 33 125
      EWSTM8/settings/vapc-meter.wsdt
  4. 800 233
      EWSTM8/vapc-meter.dep
  5. 2 2
      EWSTM8/vapc-meter.ewp
  6. 2 2
      Makefile
  7. 15 13
      lib/rtos.c
  8. 69 29
      src/main.c

+ 136 - 1
EWSTM8/settings/vapc-meter.dbgdt

@@ -1,5 +1,140 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
 
-<Project/>
+<Project>
+  <Desktop>
+    <Static>
+      <Debug-Log>
+        
+        
+      <ColumnWidth0>20</ColumnWidth0><ColumnWidth1>1621</ColumnWidth1></Debug-Log>
+      <Build>
+        
+        
+        
+        
+      <ColumnWidth0>20</ColumnWidth0><ColumnWidth1>1215</ColumnWidth1><ColumnWidth2>324</ColumnWidth2><ColumnWidth3>81</ColumnWidth3></Build>
+      <Workspace>
+        <ColumnWidths>
+          
+          
+          
+          
+        <Column0>124</Column0><Column1>27</Column1><Column2>27</Column2><Column3>27</Column3></ColumnWidths>
+      </Workspace>
+      <Disassembly>
+        <col-names>
+          
+          
+        <item>Disassembly</item><item>_I0</item></col-names>
+        <col-widths>
+          
+          
+        <item>500</item><item>20</item></col-widths>
+        <DisasmHistory/>
+        
+        
+      <ShowCodeCoverage>1</ShowCodeCoverage><ShowInstrProfiling>1</ShowInstrProfiling></Disassembly>
+      <Register>
+        <RegFindHistory/>
+      </Register>
+      <Locals>
+        <col-names>
+          
+          
+          
+          
+        <item>Location</item><item>Type</item><item>Value</item><item>Variable</item></col-names>
+        <col-widths>
+          
+          
+          
+          
+        <item>150</item><item>100</item><item>100</item><item>100</item></col-widths>
+      </Locals>
+    </Static>
+    <Windows>
+      
+      
+      
+      
+      
+    <Wnd5>
+        <Tabs>
+          <Tab>
+            <Identity>TabID-3905-4663</Identity>
+            <TabName>Debug Log</TabName>
+            <Factory>Debug-Log</Factory>
+            <Session/>
+          </Tab>
+          <Tab>
+            <Identity>TabID-3382-4673</Identity>
+            <TabName>Build</TabName>
+            <Factory>Build</Factory>
+            <Session/>
+          </Tab>
+        </Tabs>
+        
+      <SelectedTab>0</SelectedTab></Wnd5><Wnd6>
+        <Tabs>
+          <Tab>
+            <Identity>TabID-14653-4666</Identity>
+            <TabName>Workspace</TabName>
+            <Factory>Workspace</Factory>
+            <Session>
+              
+            <NodeDict><ExpandedNode>vapc-meter</ExpandedNode><ExpandedNode>vapc-meter/MAX7219</ExpandedNode></NodeDict></Session>
+          </Tab>
+        </Tabs>
+        
+      <SelectedTab>0</SelectedTab></Wnd6><Wnd7>
+        <Tabs>
+          <Tab>
+            <Identity>TabID-25402-4670</Identity>
+            <TabName>Disassembly</TabName>
+            <Factory>Disassembly</Factory>
+            <Session/>
+          </Tab>
+        </Tabs>
+        
+      <SelectedTab>0</SelectedTab></Wnd7><Wnd8>
+        <Tabs>
+          <Tab>
+            <Identity>TabID-246-4732</Identity>
+            <TabName>Register</TabName>
+            <Factory>Register</Factory>
+            <Session>
+              
+              
+              
+              
+            <REG1>0</REG1><REG2>0</REG2><Group>23</Group><States>0</States></Session>
+          </Tab>
+        </Tabs>
+        
+      <SelectedTab>0</SelectedTab></Wnd8><Wnd9>
+        <Tabs>
+          <Tab>
+            <Identity>TabID-9948-4754</Identity>
+            <TabName>Locals</TabName>
+            <Factory>Locals</Factory>
+          </Tab>
+        </Tabs>
+        
+      <SelectedTab>0</SelectedTab></Wnd9></Windows>
+    <Editor>
+      
+      
+      
+      
+    <Pane><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\src\main.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>115</YPos2><SelStart2>3548</SelStart2><SelEnd2>3548</SelEnd2></Tab><ActiveTab>0</ActiveTab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\lib\max7219.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>38</YPos2><SelStart2>2154</SelStart2><SelEnd2>2154</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\lib\rtos.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>127</YPos2><SelStart2>5053</SelStart2><SelEnd2>5053</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\StdPerphDrv\src\stm8l15x_spi.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>650</YPos2><SelStart2>27235</SelStart2><SelEnd2>27235</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\StdPerphDrv\src\stm8l15x_gpio.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>311</YPos2><SelStart2>12252</SelStart2><SelEnd2>12252</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\lib\max7219.h</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>63</YPos2><SelStart2>0</SelStart2><SelEnd2>0</SelEnd2></Tab></Pane><ActivePane>0</ActivePane><Sizes><Pane><X>1000000</X><Y>1000000</Y></Pane></Sizes><SplitMode>1</SplitMode></Editor>
+    <Positions>
+      
+      
+      
+      
+      
+    <Top><Row0><Sizes><Toolbar-02728288><key>iaridepm.enu1</key></Toolbar-02728288><Toolbar-12DD1048><key>debuggergui.enu1</key></Toolbar-12DD1048></Sizes></Row0></Top><Left><Row0><Sizes><Wnd6><Rect><Top>-2</Top><Left>-2</Left><Bottom>725</Bottom><Right>198</Right><x>-2</x><y>-2</y><xscreen>200</xscreen><yscreen>200</yscreen><sizeHorzCX>119048</sizeHorzCX><sizeHorzCY>206612</sizeHorzCY><sizeVertCX>119048</sizeVertCX><sizeVertCY>751033</sizeVertCY></Rect></Wnd6></Sizes></Row0></Left><Right><Row0><Sizes><Wnd7><Rect><Top>-2</Top><Left>-2</Left><Bottom>725</Bottom><Right>505</Right><x>-2</x><y>-2</y><xscreen>200</xscreen><yscreen>200</yscreen><sizeHorzCX>119048</sizeHorzCX><sizeHorzCY>206612</sizeHorzCY><sizeVertCX>301786</sizeVertCX><sizeVertCY>751033</sizeVertCY></Rect></Wnd7></Sizes></Row0><Row1><Sizes><Wnd8><Rect><Top>-2</Top><Left>503</Left><Bottom>725</Bottom><Right>703</Right><x>503</x><y>-2</y><xscreen>200</xscreen><yscreen>200</yscreen><sizeHorzCX>119048</sizeHorzCX><sizeHorzCY>206612</sizeHorzCY><sizeVertCX>119048</sizeVertCX><sizeVertCY>751033</sizeVertCY></Rect></Wnd8></Sizes></Row1><Row2><Sizes><Wnd9><Rect><Top>-2</Top><Left>701</Left><Bottom>725</Bottom><Right>901</Right><x>701</x><y>-2</y><xscreen>200</xscreen><yscreen>200</yscreen><sizeHorzCX>119048</sizeHorzCX><sizeHorzCY>206612</sizeHorzCY><sizeVertCX>119048</sizeVertCX><sizeVertCY>751033</sizeVertCY></Rect></Wnd9></Sizes></Row2></Right><Bottom><Row0><Sizes><Wnd5><Rect><Top>-2</Top><Left>-2</Left><Bottom>198</Bottom><Right>1682</Right><x>-2</x><y>-2</y><xscreen>1684</xscreen><yscreen>200</yscreen><sizeHorzCX>1002381</sizeHorzCX><sizeHorzCY>206612</sizeHorzCY><sizeVertCX>119048</sizeVertCX><sizeVertCY>206612</sizeVertCY></Rect></Wnd5></Sizes></Row0></Bottom><Float><Sizes/></Float></Positions>
+  </Desktop>
+</Project>
 
 

+ 17 - 0
EWSTM8/settings/vapc-meter.dni

@@ -37,6 +37,23 @@ Enabled=0
 ShowSource=1
 [Simulator]
 Freq=16000000
+[DebugChecksum]
+Checksum=-1532781562
+[CallStack]
+ShowArgs=0
+[Disassembly]
+MixedMode=1
+[DataSample]
+LogEnabled=0
+GraphEnabled=0
+ShowTimeLog=1
+[Log file]
+LoggingEnabled=_ 0
+LogFile=_ ""
+Category=_ 0
+[TermIOLog]
+LoggingEnabled=_ 0
+LogFile=_ ""
 [Breakpoints]
 Count=0
 [Aliases]

+ 33 - 125
EWSTM8/settings/vapc-meter.wsdt

@@ -2,29 +2,29 @@
 
 <Workspace>
   <ConfigDictionary>
-    <CurrentConfigs>
-      <Project>vapc-meter/Debug</Project>
-    </CurrentConfigs>
-  </ConfigDictionary>
+    
+  <CurrentConfigs><Project>vapc-meter/Debug</Project></CurrentConfigs></ConfigDictionary>
   <Desktop>
     <Static>
       <Build>
-        <ColumnWidth0>18</ColumnWidth0>
-        <ColumnWidth1>1217</ColumnWidth1>
-        <ColumnWidth2>324</ColumnWidth2>
-        <ColumnWidth3>81</ColumnWidth3>
-      </Build>
+        
+        
+        
+        
+      <ColumnWidth0>18</ColumnWidth0><ColumnWidth1>1217</ColumnWidth1><ColumnWidth2>324</ColumnWidth2><ColumnWidth3>81</ColumnWidth3></Build>
       <Workspace>
         <ColumnWidths>
-          <Column0>157</Column0>
-          <Column1>27</Column1>
-          <Column2>27</Column2>
-          <Column3>27</Column3>
-        </ColumnWidths>
+          
+          
+          
+          
+        <Column0>157</Column0><Column1>27</Column1><Column2>27</Column2><Column3>27</Column3></ColumnWidths>
       </Workspace>
-    </Static>
+    <TerminalIO/></Static>
     <Windows>
-      <Wnd2>
+      
+      
+    <Wnd0>
         <Tabs>
           <Tab>
             <Identity>TabID-7585-1319</Identity>
@@ -33,125 +33,33 @@
             <Session/>
           </Tab>
         </Tabs>
-        <SelectedTab>0</SelectedTab>
-      </Wnd2>
-      <Wnd3>
+        
+      <SelectedTab>0</SelectedTab></Wnd0><Wnd1>
         <Tabs>
           <Tab>
             <Identity>TabID-18333-1322</Identity>
             <TabName>Workspace</TabName>
             <Factory>Workspace</Factory>
             <Session>
-              <NodeDict>
-                <ExpandedNode>vapc-meter</ExpandedNode>
-                <ExpandedNode>vapc-meter/MAX7219</ExpandedNode>
-              </NodeDict>
-            </Session>
+              
+            <NodeDict><ExpandedNode>vapc-meter</ExpandedNode><ExpandedNode>vapc-meter/MAX7219</ExpandedNode><ExpandedNode>vapc-meter/RTOS</ExpandedNode></NodeDict></Session>
           </Tab>
         </Tabs>
-        <SelectedTab>0</SelectedTab>
-      </Wnd3>
-    </Windows>
+        
+      <SelectedTab>0</SelectedTab></Wnd1></Windows>
     <Editor>
-      <Pane>
-        <Tab>
-          <Factory>TextEditor</Factory>
-          <Filename>$WS_DIR$\..\src\main.c</Filename>
-          <XPos>0</XPos>
-          <YPos>0</YPos>
-          <SelStart>0</SelStart>
-          <SelEnd>0</SelEnd>
-          <XPos2>0</XPos2>
-          <YPos2>0</YPos2>
-          <SelStart2>124</SelStart2>
-          <SelEnd2>124</SelEnd2>
-        </Tab>
-        <Tab>
-          <Factory>TextEditor</Factory>
-          <Filename>$WS_DIR$\..\lib\max7219.c</Filename>
-          <XPos>0</XPos>
-          <YPos>0</YPos>
-          <SelStart>0</SelStart>
-          <SelEnd>0</SelEnd>
-          <XPos2>0</XPos2>
-          <YPos2>24</YPos2>
-          <SelStart2>2062</SelStart2>
-          <SelEnd2>2062</SelEnd2>
-        </Tab>
-        <ActiveTab>1</ActiveTab>
-      </Pane>
-      <ActivePane>0</ActivePane>
-      <Sizes>
-        <Pane>
-          <X>1000000</X>
-          <Y>1000000</Y>
-        </Pane>
-      </Sizes>
-      <SplitMode>1</SplitMode>
-    </Editor>
+      
+      
+      
+      
+    <Pane><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\src\main.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>115</YPos2><SelStart2>3548</SelStart2><SelEnd2>3548</SelEnd2></Tab><ActiveTab>0</ActiveTab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\lib\max7219.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>38</YPos2><SelStart2>2154</SelStart2><SelEnd2>2154</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\lib\rtos.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>127</YPos2><SelStart2>5053</SelStart2><SelEnd2>5053</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\StdPerphDrv\src\stm8l15x_spi.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>650</YPos2><SelStart2>27235</SelStart2><SelEnd2>27235</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\StdPerphDrv\src\stm8l15x_gpio.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>311</YPos2><SelStart2>12252</SelStart2><SelEnd2>12252</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\lib\max7219.h</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>63</YPos2><SelStart2>0</SelStart2><SelEnd2>0</SelEnd2></Tab></Pane><ActivePane>0</ActivePane><Sizes><Pane><X>1000000</X><Y>1000000</Y></Pane></Sizes><SplitMode>1</SplitMode></Editor>
     <Positions>
-      <Top>
-        <Row0>
-          <Sizes>
-            <Toolbar-00398288>
-              <key>iaridepm.enu1</key>
-            </Toolbar-00398288>
-          </Sizes>
-        </Row0>
-      </Top>
-      <Left>
-        <Row0>
-          <Sizes>
-            <Wnd3>
-              <Rect>
-                <Top>-2</Top>
-                <Left>-2</Left>
-                <Bottom>725</Bottom>
-                <Right>231</Right>
-                <x>-2</x>
-                <y>-2</y>
-                <xscreen>200</xscreen>
-                <yscreen>200</yscreen>
-                <sizeHorzCX>119048</sizeHorzCX>
-                <sizeHorzCY>206612</sizeHorzCY>
-                <sizeVertCX>138690</sizeVertCX>
-                <sizeVertCY>751033</sizeVertCY>
-              </Rect>
-            </Wnd3>
-          </Sizes>
-        </Row0>
-      </Left>
-      <Right>
-        <Row0>
-          <Sizes/>
-        </Row0>
-      </Right>
-      <Bottom>
-        <Row0>
-          <Sizes>
-            <Wnd2>
-              <Rect>
-                <Top>-2</Top>
-                <Left>-2</Left>
-                <Bottom>198</Bottom>
-                <Right>1682</Right>
-                <x>-2</x>
-                <y>-2</y>
-                <xscreen>1684</xscreen>
-                <yscreen>200</yscreen>
-                <sizeHorzCX>1002381</sizeHorzCX>
-                <sizeHorzCY>206612</sizeHorzCY>
-                <sizeVertCX>119048</sizeVertCX>
-                <sizeVertCY>206612</sizeVertCY>
-              </Rect>
-            </Wnd2>
-          </Sizes>
-        </Row0>
-      </Bottom>
-      <Float>
-        <Sizes/>
-      </Float>
-    </Positions>
+      
+      
+      
+      
+      
+    <Top><Row0><Sizes><Toolbar-02728288><key>iaridepm.enu1</key></Toolbar-02728288></Sizes></Row0><Row1><Sizes/></Row1><Row2><Sizes/></Row2></Top><Left><Row0><Sizes><Wnd1><Rect><Top>-2</Top><Left>-2</Left><Bottom>725</Bottom><Right>231</Right><x>-2</x><y>-2</y><xscreen>200</xscreen><yscreen>200</yscreen><sizeHorzCX>119048</sizeHorzCX><sizeHorzCY>206612</sizeHorzCY><sizeVertCX>138690</sizeVertCX><sizeVertCY>751033</sizeVertCY></Rect></Wnd1></Sizes></Row0></Left><Right><Row0><Sizes/></Row0></Right><Bottom><Row0><Sizes><Wnd0><Rect><Top>-2</Top><Left>-2</Left><Bottom>198</Bottom><Right>1682</Right><x>-2</x><y>-2</y><xscreen>1684</xscreen><yscreen>200</yscreen><sizeHorzCX>1002381</sizeHorzCX><sizeHorzCY>206612</sizeHorzCY><sizeVertCX>119048</sizeVertCX><sizeVertCY>206612</sizeVertCY></Rect></Wnd0></Sizes></Row0></Bottom><Float><Sizes/></Float></Positions>
   </Desktop>
 </Workspace>
 

+ 800 - 233
EWSTM8/vapc-meter.dep

@@ -2,42 +2,145 @@
 
 <project>
   <fileVersion>2</fileVersion>
-  <fileChecksum>2992972568</fileChecksum>
+  <fileChecksum>2569263446</fileChecksum>
   <configuration>
     <name>Debug</name>
     <outputs>
-      <file>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_dac.c</file>
-      <file>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_dma.c</file>
-      <file>$PROJ_DIR$\Debug\Exe\vapc-meter.out</file>
-      <file>$PROJ_DIR$\Debug\Obj\main.o</file>
-      <file>$PROJ_DIR$\Debug\Obj\main.pbi</file>
-      <file>$PROJ_DIR$\Debug\Obj\vapc-meter.pbd</file>
-      <file>$PROJ_DIR$\..\src\main.c</file>
-      <file>$PROJ_DIR$\..\src\stm8l15x_it.c</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_dac.lst</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_itc.lst</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_wfe.lst</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_itc.s</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_it.s</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_it.lst</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_gpio.s</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_pwr.lst</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_rst.lst</file>
+      <file>$PROJ_DIR$\Debug\List\rtos.lst</file>
+      <file>$PROJ_DIR$\Debug\List\rtos.s</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_beep.lst</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_gpio.lst</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_dac.s</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_wfe.s</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_flash.s</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_dma.s</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_dma.lst</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_beep.s</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_exti.lst</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_irtim.lst</file>
+      <file>$TOOLKIT_DIR$\lib\dlstm8ssn.a</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_clk.lst</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_clk.s</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_rtc.s</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_exti.s</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_i2c.lst</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_iwdg.lst</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_i2c.s</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_lcd.s</file>
+      <file>$TOOLKIT_DIR$\lib\dbgstm8ssd.a</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_iwdg.s</file>
+      <file>$PROJ_DIR$\Debug\List\vapc-meter.map</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_irtim.s</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_lcd.lst</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_rtc.lst</file>
+      <file>$TOOLKIT_DIR$\config\lnkstm8l051f3.icf</file>
+      <file>$TOOLKIT_DIR$\config\math_small.xcl</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_tim5.s</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_tim5.lst</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_wwdg.lst</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_wwdg.s</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_adc.__cstat.et</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_itc.o</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_lcd.o</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_rtc.o</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_spi.o</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_syscfg.o</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_tim1.o</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_comp.pbi</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_tim4.o</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_tim2.o</file>
       <file>$PROJ_DIR$\Debug\Obj\stm8l15x_it.o</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_wfe.o</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_usart.o</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_tim3.o</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_tim5.o</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_wwdg.o</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_aes.pbi</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_tim5.pbi</file>
+      <file>$PROJ_DIR$\Debug\Exe\vapc-meter.out</file>
+      <file>$PROJ_DIR$\Debug\Obj\rtos.pbi</file>
+      <file>$PROJ_DIR$\Debug\Obj\rtos.o</file>
+      <file>$PROJ_DIR$\Debug\Obj\max7219.o</file>
       <file>$PROJ_DIR$\Debug\Obj\stm8l15x_it.pbi</file>
-      <file>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_adc.c</file>
-      <file>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_aes.c</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_wfe.pbi</file>
+      <file>$PROJ_DIR$\Debug\Obj\vapc-meter.pbd</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_usart.pbi</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_wwdg.pbi</file>
+      <file>$PROJ_DIR$\Debug\Obj\max7219.pbi</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_adc.o</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_beep.o</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_clk.__cstat.et</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_beep.__cstat.et</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_comp.__cstat.et</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_tim4.pbi</file>
+      <file>$PROJ_DIR$\Debug\Exe\vapc-meter.hex</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_tim1.pbi</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_tim3.pbi</file>
+      <file>$TOOLKIT_DIR$\inc\c\intrinsics.h</file>
+      <file>$PROJ_DIR$\Debug\List\max7219.lst</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_spi.s</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_comp.o</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_dma.o</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_aes.o</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_rst.o</file>
+      <file>$PROJ_DIR$\Debug\Obj\main.pbi</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_clk.o</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_dac.o</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_flash.o</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_exti.o</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_i2c.o</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_gpio.o</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_irtim.o</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_iwdg.o</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_pwr.o</file>
+      <file>$PROJ_DIR$\Debug\Obj\main.o</file>
+      <file>$PROJ_DIR$\..\lib\max7219.c</file>
+      <file>$PROJ_DIR$\..\inc\stm8l15x_it.h</file>
       <file>$PROJ_DIR$\..\inc\stm8l15x_conf.h</file>
-      <file>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_clk.c</file>
+      <file>$PROJ_DIR$\..\lib\max7219.h</file>
+      <file>$PROJ_DIR$\..\lib\rtos.c</file>
+      <file>$PROJ_DIR$\..\lib\rtos.h</file>
+      <file>$PROJ_DIR$\..\StdPerphDrv\inc\stm8l15x.h</file>
+      <file>$PROJ_DIR$\..\StdPerphDrv\inc\stm8l15x_adc.h</file>
+      <file>$PROJ_DIR$\..\StdPerphDrv\inc\stm8l15x_aes.h</file>
+      <file>$PROJ_DIR$\..\StdPerphDrv\inc\stm8l15x_beep.h</file>
+      <file>$PROJ_DIR$\..\StdPerphDrv\inc\stm8l15x_clk.h</file>
+      <file>$PROJ_DIR$\..\StdPerphDrv\inc\stm8l15x_comp.h</file>
+      <file>$PROJ_DIR$\..\StdPerphDrv\inc\stm8l15x_dac.h</file>
+      <file>$PROJ_DIR$\..\StdPerphDrv\inc\stm8l15x_dma.h</file>
+      <file>$PROJ_DIR$\..\StdPerphDrv\inc\stm8l15x_exti.h</file>
+      <file>$PROJ_DIR$\..\StdPerphDrv\inc\stm8l15x_flash.h</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_irtim.pbi</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_itc.pbi</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_tim2.pbi</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_iwdg.pbi</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_lcd.pbi</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_pwr.pbi</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_rst.pbi</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_rtc.pbi</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_spi.pbi</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_tim2.s</file>
+      <file>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_aes.c</file>
+      <file>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_adc.c</file>
       <file>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_beep.c</file>
+      <file>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_clk.c</file>
       <file>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_comp.c</file>
+      <file>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_dac.c</file>
+      <file>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_dma.c</file>
       <file>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_exti.c</file>
       <file>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_flash.c</file>
       <file>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_gpio.c</file>
       <file>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_i2c.c</file>
       <file>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_irtim.c</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_usart.pbi</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_wfe.pbi</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_wwdg.pbi</file>
-      <file>$PROJ_DIR$\..\StdPerphDrv\inc\stm8l15x.h</file>
-      <file>$PROJ_DIR$\..\lib\max7219.c</file>
-      <file>$PROJ_DIR$\..\lib\rtos.c</file>
-      <file>$PROJ_DIR$\Debug\Obj\rtos.o</file>
-      <file>$PROJ_DIR$\Debug\Obj\rtos.pbi</file>
-      <file>$PROJ_DIR$\Debug\Obj\max7219.o</file>
-      <file>$PROJ_DIR$\..\lib\max7219.h</file>
-      <file>$PROJ_DIR$\Debug\Obj\max7219.pbi</file>
       <file>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_itc.c</file>
       <file>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_iwdg.c</file>
       <file>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_lcd.c</file>
@@ -46,47 +149,20 @@
       <file>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_rtc.c</file>
       <file>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_spi.c</file>
       <file>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_syscfg.c</file>
-      <file>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_tim1.c</file>
       <file>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_tim2.c</file>
+      <file>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_tim1.c</file>
       <file>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_tim3.c</file>
       <file>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_tim4.c</file>
       <file>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_tim5.c</file>
       <file>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_usart.c</file>
       <file>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_wfe.c</file>
       <file>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_wwdg.c</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_adc.o</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_beep.o</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_aes.o</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_comp.o</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_dma.o</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_clk.o</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_dac.o</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_flash.o</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_exti.o</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_i2c.o</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_gpio.o</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_irtim.o</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_iwdg.o</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_pwr.o</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_rst.o</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_itc.o</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_lcd.o</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_rtc.o</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_spi.o</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_syscfg.o</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_tim1.o</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_tim2.o</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_comp.pbi</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_tim4.o</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_wfe.o</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_usart.o</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_tim3.o</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_tim5.o</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_wwdg.o</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_aes.pbi</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_tim5.pbi</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_adc.pbi</file>
+      <file>$PROJ_DIR$\..\src\main.c</file>
+      <file>$PROJ_DIR$\..\src\stm8l15x_it.c</file>
+      <file>$PROJ_DIR$\Debug\Obj\max7219.__cstat.et</file>
+      <file>$PROJ_DIR$\Debug\Obj\rtos.__cstat.et</file>
       <file>$PROJ_DIR$\Debug\Obj\stm8l15x_beep.pbi</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_adc.pbi</file>
       <file>$PROJ_DIR$\Debug\Obj\stm8l15x_clk.pbi</file>
       <file>$PROJ_DIR$\Debug\Obj\stm8l15x_dac.pbi</file>
       <file>$PROJ_DIR$\Debug\Obj\stm8l15x_dma.pbi</file>
@@ -94,478 +170,969 @@
       <file>$PROJ_DIR$\Debug\Obj\stm8l15x_flash.pbi</file>
       <file>$PROJ_DIR$\Debug\Obj\stm8l15x_gpio.pbi</file>
       <file>$PROJ_DIR$\Debug\Obj\stm8l15x_i2c.pbi</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_irtim.pbi</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_itc.pbi</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_iwdg.pbi</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_lcd.pbi</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_pwr.pbi</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_rst.pbi</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_rtc.pbi</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_spi.pbi</file>
       <file>$PROJ_DIR$\Debug\Obj\stm8l15x_syscfg.pbi</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_tim1.pbi</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_tim2.pbi</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_tim3.pbi</file>
-      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_tim4.pbi</file>
-      <file>$PROJ_DIR$\Debug\Exe\vapc-meter.hex</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_aes.__cstat.et</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_dac.__cstat.et</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_dma.__cstat.et</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_exti.__cstat.et</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_flash.__cstat.et</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_gpio.__cstat.et</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_i2c.__cstat.et</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_irtim.__cstat.et</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_itc.__cstat.et</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_iwdg.__cstat.et</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_lcd.__cstat.et</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_pwr.__cstat.et</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_rst.__cstat.et</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_rtc.__cstat.et</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_spi.__cstat.et</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_syscfg.__cstat.et</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_tim1.__cstat.et</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_tim2.__cstat.et</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_tim3.__cstat.et</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_tim4.__cstat.et</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_tim5.__cstat.et</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_usart.__cstat.et</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_wfe.__cstat.et</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_wwdg.__cstat.et</file>
+      <file>$PROJ_DIR$\Debug\Obj\stm8l15x_it.__cstat.et</file>
+      <file>$PROJ_DIR$\Debug\Obj\main.__cstat.et</file>
+      <file>$PROJ_DIR$\Debug\List\max7219.s</file>
+      <file>$PROJ_DIR$\Debug\List\main.s</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_spi.lst</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_adc.lst</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_aes.s</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_aes.lst</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_adc.s</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_comp.s</file>
+      <file>$PROJ_DIR$\Debug\List\main.lst</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_comp.lst</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_tim3.lst</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_tim4.lst</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_syscfg.lst</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_tim3.s</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_syscfg.s</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_tim4.s</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_tim1.s</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_usart.lst</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_tim1.lst</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_usart.s</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_tim2.lst</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_rst.s</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_pwr.s</file>
+      <file>$PROJ_DIR$\Debug\List\stm8l15x_flash.lst</file>
+      <file>$PROJ_DIR$\..\StdPerphDrv\inc\stm8l15x_i2c.h</file>
+      <file>$PROJ_DIR$\..\StdPerphDrv\inc\stm8l15x_gpio.h</file>
+      <file>$PROJ_DIR$\..\StdPerphDrv\inc\stm8l15x_irtim.h</file>
+      <file>$PROJ_DIR$\..\StdPerphDrv\inc\stm8l15x_itc.h</file>
+      <file>$PROJ_DIR$\..\StdPerphDrv\inc\stm8l15x_iwdg.h</file>
+      <file>$PROJ_DIR$\..\StdPerphDrv\inc\stm8l15x_lcd.h</file>
+      <file>$PROJ_DIR$\..\StdPerphDrv\inc\stm8l15x_pwr.h</file>
+      <file>$PROJ_DIR$\..\StdPerphDrv\inc\stm8l15x_rst.h</file>
+      <file>$PROJ_DIR$\..\StdPerphDrv\inc\stm8l15x_rtc.h</file>
+      <file>$PROJ_DIR$\..\StdPerphDrv\inc\stm8l15x_spi.h</file>
       <file>$PROJ_DIR$\..\StdPerphDrv\inc\stm8l15x_syscfg.h</file>
       <file>$PROJ_DIR$\..\StdPerphDrv\inc\stm8l15x_tim1.h</file>
       <file>$PROJ_DIR$\..\StdPerphDrv\inc\stm8l15x_tim2.h</file>
       <file>$PROJ_DIR$\..\StdPerphDrv\inc\stm8l15x_tim3.h</file>
       <file>$PROJ_DIR$\..\StdPerphDrv\inc\stm8l15x_tim4.h</file>
+      <file>$PROJ_DIR$\..\StdPerphDrv\inc\stm8l15x_tim5.h</file>
       <file>$PROJ_DIR$\..\StdPerphDrv\inc\stm8l15x_usart.h</file>
-      <file>$PROJ_DIR$\..\StdPerphDrv\inc\stm8l15x_gpio.h</file>
-      <file>$PROJ_DIR$\..\StdPerphDrv\inc\stm8l15x_itc.h</file>
-      <file>$PROJ_DIR$\..\StdPerphDrv\inc\stm8l15x_spi.h</file>
-      <file>$PROJ_DIR$\..\StdPerphDrv\inc\stm8l15x_adc.h</file>
-      <file>$PROJ_DIR$\..\StdPerphDrv\inc\stm8l15x_clk.h</file>
-      <file>$PROJ_DIR$\..\StdPerphDrv\inc\stm8l15x_dma.h</file>
-      <file>$PROJ_DIR$\..\StdPerphDrv\inc\stm8l15x_exti.h</file>
-      <file>$TOOLKIT_DIR$\inc\c\intrinsics.h</file>
+      <file>$PROJ_DIR$\..\StdPerphDrv\inc\stm8l15x_wfe.h</file>
+      <file>$PROJ_DIR$\..\StdPerphDrv\inc\stm8l15x_wwdg.h</file>
     </outputs>
     <file>
       <name>[ROOT_NODE]</name>
       <outputs>
         <tool>
           <name>ILINK</name>
-          <file> 2</file>
+          <file> 60 32</file>
         </tool>
       </outputs>
     </file>
     <file>
-      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_dac.c</name>
+      <name>$PROJ_DIR$\Debug\Exe\vapc-meter.out</name>
+      <outputs>
+        <tool>
+          <name>ILINK</name>
+          <file> 32</file>
+        </tool>
+        <tool>
+          <name>OBJCOPY</name>
+          <file> 76</file>
+        </tool>
+      </outputs>
+      <inputs>
+        <tool>
+          <name>ILINK</name>
+          <file> 37 36 96 63 62 70 84 71 87 82 88 83 90 89 92 91 93 52 43 94 44 95 85 45 46 47 48 51 55 50 56 54 53 57 21 30</file>
+        </tool>
+      </inputs>
+    </file>
+    <file>
+      <name>$PROJ_DIR$\..\lib\max7219.c</name>
+      <outputs>
+        <tool>
+          <name>BICOMP</name>
+          <file> 69</file>
+        </tool>
+        <tool>
+          <name>ICCSTM8</name>
+          <file> 191 80 63</file>
+        </tool>
+        <tool>
+          <name>__cstat</name>
+          <file> 153</file>
+        </tool>
+      </outputs>
+      <inputs>
+        <tool>
+          <name>BICOMP</name>
+          <file> 99 103 218 107 227 111 225 229 100 79 104 110 216 224 226 228 231</file>
+        </tool>
+        <tool>
+          <name>ICCSTM8</name>
+          <file> 100 103 99 104 107 110 111 216 218 224 225 226 227 228 229 231 79</file>
+        </tool>
+      </inputs>
+    </file>
+    <file>
+      <name>$PROJ_DIR$\..\lib\rtos.c</name>
+      <outputs>
+        <tool>
+          <name>BICOMP</name>
+          <file> 61</file>
+        </tool>
+        <tool>
+          <name>ICCSTM8</name>
+          <file> 10 9 62</file>
+        </tool>
+        <tool>
+          <name>__cstat</name>
+          <file> 154</file>
+        </tool>
+      </outputs>
+      <inputs>
+        <tool>
+          <name>BICOMP</name>
+          <file> 107 103 110 228 79 224 98 104 216 226 231 102 99 111 218 225 227 229</file>
+        </tool>
+        <tool>
+          <name>ICCSTM8</name>
+          <file> 102 103 99 104 107 110 111 216 218 224 225 226 227 228 229 231 79 98</file>
+        </tool>
+      </inputs>
+    </file>
+    <file>
+      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_aes.c</name>
+      <outputs>
+        <tool>
+          <name>BICOMP</name>
+          <file> 58</file>
+        </tool>
+        <tool>
+          <name>ICCSTM8</name>
+          <file> 195 196 84</file>
+        </tool>
+        <tool>
+          <name>__cstat</name>
+          <file> 165</file>
+        </tool>
+      </outputs>
+      <inputs>
+        <tool>
+          <name>BICOMP</name>
+          <file> 103 107 110 228 79 224 104 216 226 231 105 99 111 218 225 227 229</file>
+        </tool>
+        <tool>
+          <name>ICCSTM8</name>
+          <file> 105 103 99 104 107 110 111 216 218 224 225 226 227 228 229 231 79</file>
+        </tool>
+      </inputs>
+    </file>
+    <file>
+      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_adc.c</name>
+      <outputs>
+        <tool>
+          <name>BICOMP</name>
+          <file> 156</file>
+        </tool>
+        <tool>
+          <name>ICCSTM8</name>
+          <file> 197 194 70</file>
+        </tool>
+        <tool>
+          <name>__cstat</name>
+          <file> 42</file>
+        </tool>
+      </outputs>
+      <inputs>
+        <tool>
+          <name>BICOMP</name>
+          <file> 227 103 107 99 218 111 225 229 104 79 110 216 224 226 228 231</file>
+        </tool>
+        <tool>
+          <name>ICCSTM8</name>
+          <file> 104 103 99 107 110 111 216 218 224 225 226 227 228 229 231 79</file>
+        </tool>
+      </inputs>
+    </file>
+    <file>
+      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_beep.c</name>
+      <outputs>
+        <tool>
+          <name>BICOMP</name>
+          <file> 155</file>
+        </tool>
+        <tool>
+          <name>ICCSTM8</name>
+          <file> 18 11 71</file>
+        </tool>
+        <tool>
+          <name>__cstat</name>
+          <file> 73</file>
+        </tool>
+      </outputs>
+      <inputs>
+        <tool>
+          <name>BICOMP</name>
+          <file> 103 107 110 228 79 224 104 216 226 231 106 99 111 218 225 227 229</file>
+        </tool>
+        <tool>
+          <name>ICCSTM8</name>
+          <file> 106 103 99 104 107 110 111 216 218 224 225 226 227 228 229 231 79</file>
+        </tool>
+      </inputs>
+    </file>
+    <file>
+      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_clk.c</name>
+      <outputs>
+        <tool>
+          <name>BICOMP</name>
+          <file> 157</file>
+        </tool>
+        <tool>
+          <name>ICCSTM8</name>
+          <file> 23 22 87</file>
+        </tool>
+        <tool>
+          <name>__cstat</name>
+          <file> 72</file>
+        </tool>
+      </outputs>
+      <inputs>
+        <tool>
+          <name>BICOMP</name>
+          <file> 103 225 111 229 99 107 218 227 79 104 110 216 224 226 228 231</file>
+        </tool>
+        <tool>
+          <name>ICCSTM8</name>
+          <file> 107 103 99 104 110 111 216 218 224 225 226 227 228 229 231 79</file>
+        </tool>
+      </inputs>
+    </file>
+    <file>
+      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_comp.c</name>
+      <outputs>
+        <tool>
+          <name>BICOMP</name>
+          <file> 49</file>
+        </tool>
+        <tool>
+          <name>ICCSTM8</name>
+          <file> 198 200 82</file>
+        </tool>
+        <tool>
+          <name>__cstat</name>
+          <file> 74</file>
+        </tool>
+      </outputs>
+      <inputs>
+        <tool>
+          <name>BICOMP</name>
+          <file> 103 107 110 228 79 224 104 216 226 231 108 99 111 218 225 227 229</file>
+        </tool>
+        <tool>
+          <name>ICCSTM8</name>
+          <file> 108 103 99 104 107 110 111 216 218 224 225 226 227 228 229 231 79</file>
+        </tool>
+      </inputs>
+    </file>
+    <file>
+      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_dac.c</name>
+      <outputs>
+        <tool>
+          <name>BICOMP</name>
+          <file> 158</file>
+        </tool>
+        <tool>
+          <name>ICCSTM8</name>
+          <file> 13 0 88</file>
+        </tool>
+        <tool>
+          <name>__cstat</name>
+          <file> 166</file>
+        </tool>
+      </outputs>
+      <inputs>
+        <tool>
+          <name>BICOMP</name>
+          <file> 103 99 218 107 227 111 225 229 109 79 104 110 216 224 226 228 231</file>
+        </tool>
+        <tool>
+          <name>ICCSTM8</name>
+          <file> 109 103 99 104 107 110 111 216 218 224 225 226 227 228 229 231 79</file>
+        </tool>
+      </inputs>
+    </file>
+    <file>
+      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_dma.c</name>
+      <outputs>
+        <tool>
+          <name>BICOMP</name>
+          <file> 159</file>
+        </tool>
+        <tool>
+          <name>ICCSTM8</name>
+          <file> 16 17 83</file>
+        </tool>
+        <tool>
+          <name>__cstat</name>
+          <file> 167</file>
+        </tool>
+      </outputs>
+      <inputs>
+        <tool>
+          <name>BICOMP</name>
+          <file> 224 103 79 110 228 104 216 226 231 99 107 111 218 225 227 229</file>
+        </tool>
+        <tool>
+          <name>ICCSTM8</name>
+          <file> 110 103 99 104 107 111 216 218 224 225 226 227 228 229 231 79</file>
+        </tool>
+      </inputs>
+    </file>
+    <file>
+      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_exti.c</name>
+      <outputs>
+        <tool>
+          <name>BICOMP</name>
+          <file> 160</file>
+        </tool>
+        <tool>
+          <name>ICCSTM8</name>
+          <file> 25 19 90</file>
+        </tool>
+        <tool>
+          <name>__cstat</name>
+          <file> 168</file>
+        </tool>
+      </outputs>
+      <inputs>
+        <tool>
+          <name>BICOMP</name>
+          <file> 110 103 228 79 224 104 216 226 231 111 99 107 218 225 227 229</file>
+        </tool>
+        <tool>
+          <name>ICCSTM8</name>
+          <file> 111 103 99 104 107 110 216 218 224 225 226 227 228 229 231 79</file>
+        </tool>
+      </inputs>
+    </file>
+    <file>
+      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_flash.c</name>
+      <outputs>
+        <tool>
+          <name>BICOMP</name>
+          <file> 161</file>
+        </tool>
+        <tool>
+          <name>ICCSTM8</name>
+          <file> 15 214 89</file>
+        </tool>
+        <tool>
+          <name>__cstat</name>
+          <file> 169</file>
+        </tool>
+      </outputs>
+      <inputs>
+        <tool>
+          <name>BICOMP</name>
+          <file> 99 103 218 107 227 111 225 229 112 79 104 110 216 224 226 228 231</file>
+        </tool>
+        <tool>
+          <name>ICCSTM8</name>
+          <file> 112 103 99 104 107 110 111 216 218 224 225 226 227 228 229 231 79</file>
+        </tool>
+      </inputs>
+    </file>
+    <file>
+      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_gpio.c</name>
+      <outputs>
+        <tool>
+          <name>BICOMP</name>
+          <file> 162</file>
+        </tool>
+        <tool>
+          <name>ICCSTM8</name>
+          <file> 6 12 92</file>
+        </tool>
+        <tool>
+          <name>__cstat</name>
+          <file> 170</file>
+        </tool>
+      </outputs>
+      <inputs>
+        <tool>
+          <name>BICOMP</name>
+          <file> 225 103 111 229 99 107 218 227 216 79 104 110 224 226 228 231</file>
+        </tool>
+        <tool>
+          <name>ICCSTM8</name>
+          <file> 216 103 99 104 107 110 111 218 224 225 226 227 228 229 231 79</file>
+        </tool>
+      </inputs>
+    </file>
+    <file>
+      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_i2c.c</name>
       <outputs>
         <tool>
           <name>BICOMP</name>
-          <file> 82</file>
+          <file> 163</file>
         </tool>
         <tool>
           <name>ICCSTM8</name>
-          <file> 54</file>
+          <file> 28 26 91</file>
+        </tool>
+        <tool>
+          <name>__cstat</name>
+          <file> 171</file>
         </tool>
       </outputs>
-    </file>
-    <file>
-      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_dma.c</name>
-      <outputs>
+      <inputs>
         <tool>
           <name>BICOMP</name>
-          <file> 83</file>
+          <file> 103 99 218 107 227 111 225 229 215 79 104 110 216 224 226 228 231</file>
         </tool>
         <tool>
           <name>ICCSTM8</name>
-          <file> 52</file>
+          <file> 215 103 99 104 107 110 111 216 218 224 225 226 227 228 229 231 79</file>
         </tool>
-      </outputs>
+      </inputs>
     </file>
     <file>
-      <name>$PROJ_DIR$\Debug\Exe\vapc-meter.out</name>
+      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_irtim.c</name>
       <outputs>
         <tool>
-          <name>OBJCOPY</name>
-          <file> 101</file>
+          <name>BICOMP</name>
+          <file> 113</file>
+        </tool>
+        <tool>
+          <name>ICCSTM8</name>
+          <file> 33 20 93</file>
+        </tool>
+        <tool>
+          <name>__cstat</name>
+          <file> 172</file>
         </tool>
       </outputs>
-    </file>
-    <file>
-      <name>$PROJ_DIR$\..\src\main.c</name>
-      <outputs>
+      <inputs>
         <tool>
           <name>BICOMP</name>
-          <file> 4</file>
+          <file> 103 107 110 228 79 224 104 216 226 231 217 99 111 218 225 227 229</file>
         </tool>
         <tool>
           <name>ICCSTM8</name>
-          <file> 3</file>
+          <file> 217 103 99 104 107 110 111 216 218 224 225 226 227 228 229 231 79</file>
         </tool>
-      </outputs>
+      </inputs>
     </file>
     <file>
-      <name>$PROJ_DIR$\..\src\stm8l15x_it.c</name>
+      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_itc.c</name>
       <outputs>
         <tool>
           <name>BICOMP</name>
-          <file> 9</file>
+          <file> 114</file>
         </tool>
         <tool>
           <name>ICCSTM8</name>
-          <file> 8</file>
+          <file> 3 1 43</file>
+        </tool>
+        <tool>
+          <name>__cstat</name>
+          <file> 173</file>
         </tool>
       </outputs>
-    </file>
-    <file>
-      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_adc.c</name>
-      <outputs>
+      <inputs>
         <tool>
           <name>BICOMP</name>
-          <file> 79</file>
+          <file> 103 107 231 216 104 226 79 110 224 228 218 99 111 225 227 229</file>
         </tool>
         <tool>
           <name>ICCSTM8</name>
-          <file> 48</file>
+          <file> 218 103 99 104 107 110 111 216 224 225 226 227 228 229 231 79</file>
         </tool>
-      </outputs>
+      </inputs>
     </file>
     <file>
-      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_aes.c</name>
+      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_iwdg.c</name>
       <outputs>
         <tool>
           <name>BICOMP</name>
-          <file> 77</file>
+          <file> 116</file>
         </tool>
         <tool>
           <name>ICCSTM8</name>
-          <file> 50</file>
+          <file> 31 27 94</file>
+        </tool>
+        <tool>
+          <name>__cstat</name>
+          <file> 174</file>
         </tool>
       </outputs>
-    </file>
-    <file>
-      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_clk.c</name>
-      <outputs>
+      <inputs>
         <tool>
           <name>BICOMP</name>
-          <file> 81</file>
+          <file> 103 107 110 228 79 224 104 216 226 231 219 99 111 218 225 227 229</file>
         </tool>
         <tool>
           <name>ICCSTM8</name>
-          <file> 53</file>
+          <file> 219 103 99 104 107 110 111 216 218 224 225 226 227 228 229 231 79</file>
         </tool>
-      </outputs>
+      </inputs>
     </file>
     <file>
-      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_beep.c</name>
+      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_lcd.c</name>
       <outputs>
         <tool>
           <name>BICOMP</name>
-          <file> 80</file>
+          <file> 117</file>
         </tool>
         <tool>
           <name>ICCSTM8</name>
-          <file> 49</file>
+          <file> 29 34 44</file>
+        </tool>
+        <tool>
+          <name>__cstat</name>
+          <file> 175</file>
         </tool>
       </outputs>
-    </file>
-    <file>
-      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_comp.c</name>
-      <outputs>
+      <inputs>
         <tool>
           <name>BICOMP</name>
-          <file> 70</file>
+          <file> 103 99 218 107 227 111 225 229 220 79 104 110 216 224 226 228 231</file>
         </tool>
         <tool>
           <name>ICCSTM8</name>
-          <file> 51</file>
+          <file> 220 103 99 104 107 110 111 216 218 224 225 226 227 228 229 231 79</file>
         </tool>
-      </outputs>
+      </inputs>
     </file>
     <file>
-      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_exti.c</name>
+      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_pwr.c</name>
       <outputs>
         <tool>
           <name>BICOMP</name>
-          <file> 84</file>
+          <file> 118</file>
         </tool>
         <tool>
           <name>ICCSTM8</name>
-          <file> 56</file>
+          <file> 213 7 95</file>
+        </tool>
+        <tool>
+          <name>__cstat</name>
+          <file> 176</file>
         </tool>
       </outputs>
-    </file>
-    <file>
-      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_flash.c</name>
-      <outputs>
+      <inputs>
         <tool>
           <name>BICOMP</name>
-          <file> 85</file>
+          <file> 103 107 110 228 79 224 104 216 226 231 221 99 111 218 225 227 229</file>
         </tool>
         <tool>
           <name>ICCSTM8</name>
-          <file> 55</file>
+          <file> 221 103 99 104 107 110 111 216 218 224 225 226 227 228 229 231 79</file>
         </tool>
-      </outputs>
+      </inputs>
     </file>
     <file>
-      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_gpio.c</name>
+      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_rst.c</name>
       <outputs>
         <tool>
           <name>BICOMP</name>
-          <file> 86</file>
+          <file> 119</file>
         </tool>
         <tool>
           <name>ICCSTM8</name>
-          <file> 58</file>
+          <file> 212 8 85</file>
+        </tool>
+        <tool>
+          <name>__cstat</name>
+          <file> 177</file>
         </tool>
       </outputs>
-    </file>
-    <file>
-      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_i2c.c</name>
-      <outputs>
+      <inputs>
         <tool>
           <name>BICOMP</name>
-          <file> 87</file>
+          <file> 103 107 110 228 79 224 104 216 226 231 222 99 111 218 225 227 229</file>
         </tool>
         <tool>
           <name>ICCSTM8</name>
-          <file> 57</file>
+          <file> 222 103 99 104 107 110 111 216 218 224 225 226 227 228 229 231 79</file>
         </tool>
-      </outputs>
+      </inputs>
     </file>
     <file>
-      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_irtim.c</name>
+      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_rtc.c</name>
       <outputs>
         <tool>
           <name>BICOMP</name>
-          <file> 88</file>
+          <file> 120</file>
         </tool>
         <tool>
           <name>ICCSTM8</name>
-          <file> 59</file>
+          <file> 24 35 45</file>
+        </tool>
+        <tool>
+          <name>__cstat</name>
+          <file> 178</file>
         </tool>
       </outputs>
+      <inputs>
+        <tool>
+          <name>BICOMP</name>
+          <file> 99 103 218 107 227 111 225 229 223 79 104 110 216 224 226 228 231</file>
+        </tool>
+        <tool>
+          <name>ICCSTM8</name>
+          <file> 223 103 99 104 107 110 111 216 218 224 225 226 227 228 229 231 79</file>
+        </tool>
+      </inputs>
     </file>
     <file>
-      <name>$PROJ_DIR$\..\lib\max7219.c</name>
+      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_spi.c</name>
       <outputs>
         <tool>
           <name>BICOMP</name>
-          <file> 31</file>
+          <file> 121</file>
         </tool>
         <tool>
           <name>ICCSTM8</name>
-          <file> 29</file>
+          <file> 81 193 46</file>
+        </tool>
+        <tool>
+          <name>__cstat</name>
+          <file> 179</file>
         </tool>
       </outputs>
       <inputs>
         <tool>
           <name>BICOMP</name>
-          <file> 12 24 109 112 104 114 102 106 30 115 111 113 108 110 103 105 107</file>
+          <file> 226 103 104 216 231 79 110 224 228 99 107 111 218 225 227 229</file>
+        </tool>
+        <tool>
+          <name>ICCSTM8</name>
+          <file> 224 103 99 104 107 110 111 216 218 225 226 227 228 229 231 79</file>
         </tool>
       </inputs>
     </file>
     <file>
-      <name>$PROJ_DIR$\..\lib\rtos.c</name>
+      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_syscfg.c</name>
       <outputs>
         <tool>
           <name>BICOMP</name>
-          <file> 28</file>
+          <file> 164</file>
         </tool>
         <tool>
           <name>ICCSTM8</name>
-          <file> 27</file>
+          <file> 205 203 47</file>
+        </tool>
+        <tool>
+          <name>__cstat</name>
+          <file> 180</file>
         </tool>
       </outputs>
-    </file>
-    <file>
-      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_itc.c</name>
-      <outputs>
+      <inputs>
         <tool>
           <name>BICOMP</name>
-          <file> 89</file>
+          <file> 216 103 231 104 226 79 110 224 228 225 99 107 111 218 227 229</file>
         </tool>
         <tool>
           <name>ICCSTM8</name>
-          <file> 63</file>
+          <file> 225 103 99 104 107 110 111 216 218 224 226 227 228 229 231 79</file>
         </tool>
-      </outputs>
+      </inputs>
     </file>
     <file>
-      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_iwdg.c</name>
+      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_tim2.c</name>
       <outputs>
         <tool>
           <name>BICOMP</name>
-          <file> 90</file>
+          <file> 115</file>
         </tool>
         <tool>
           <name>ICCSTM8</name>
-          <file> 60</file>
+          <file> 122 211 51</file>
+        </tool>
+        <tool>
+          <name>__cstat</name>
+          <file> 182</file>
         </tool>
       </outputs>
-    </file>
-    <file>
-      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_lcd.c</name>
-      <outputs>
+      <inputs>
         <tool>
           <name>BICOMP</name>
-          <file> 91</file>
+          <file> 103 107 227 99 218 111 225 229 79 104 110 216 224 226 228 231</file>
         </tool>
         <tool>
           <name>ICCSTM8</name>
-          <file> 64</file>
+          <file> 227 103 99 104 107 110 111 216 218 224 225 226 228 229 231 79</file>
         </tool>
-      </outputs>
+      </inputs>
     </file>
     <file>
-      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_pwr.c</name>
+      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_tim1.c</name>
       <outputs>
         <tool>
           <name>BICOMP</name>
-          <file> 92</file>
+          <file> 77</file>
         </tool>
         <tool>
           <name>ICCSTM8</name>
-          <file> 61</file>
+          <file> 207 209 48</file>
+        </tool>
+        <tool>
+          <name>__cstat</name>
+          <file> 181</file>
         </tool>
       </outputs>
-    </file>
-    <file>
-      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_rst.c</name>
-      <outputs>
+      <inputs>
         <tool>
           <name>BICOMP</name>
-          <file> 93</file>
+          <file> 104 226 103 216 231 79 110 224 228 99 107 111 218 225 227 229</file>
         </tool>
         <tool>
           <name>ICCSTM8</name>
-          <file> 62</file>
+          <file> 226 103 99 104 107 110 111 216 218 224 225 227 228 229 231 79</file>
         </tool>
-      </outputs>
+      </inputs>
     </file>
     <file>
-      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_rtc.c</name>
+      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_tim3.c</name>
       <outputs>
         <tool>
           <name>BICOMP</name>
-          <file> 94</file>
+          <file> 78</file>
         </tool>
         <tool>
           <name>ICCSTM8</name>
-          <file> 65</file>
+          <file> 204 201 55</file>
+        </tool>
+        <tool>
+          <name>__cstat</name>
+          <file> 183</file>
         </tool>
       </outputs>
-    </file>
-    <file>
-      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_spi.c</name>
-      <outputs>
+      <inputs>
         <tool>
           <name>BICOMP</name>
-          <file> 95</file>
+          <file> 103 107 227 99 218 111 225 229 228 79 104 110 216 224 226 231</file>
         </tool>
         <tool>
           <name>ICCSTM8</name>
-          <file> 66</file>
+          <file> 228 103 99 104 107 110 111 216 218 224 225 226 227 229 231 79</file>
         </tool>
-      </outputs>
+      </inputs>
     </file>
     <file>
-      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_syscfg.c</name>
+      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_tim4.c</name>
       <outputs>
         <tool>
           <name>BICOMP</name>
-          <file> 96</file>
+          <file> 75</file>
         </tool>
         <tool>
           <name>ICCSTM8</name>
-          <file> 67</file>
+          <file> 206 202 50</file>
+        </tool>
+        <tool>
+          <name>__cstat</name>
+          <file> 184</file>
         </tool>
       </outputs>
-    </file>
-    <file>
-      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_tim1.c</name>
-      <outputs>
+      <inputs>
         <tool>
           <name>BICOMP</name>
-          <file> 97</file>
+          <file> 228 110 103 79 224 104 216 226 231 229 99 107 111 218 225 227</file>
         </tool>
         <tool>
           <name>ICCSTM8</name>
-          <file> 68</file>
+          <file> 229 103 99 104 107 110 111 216 218 224 225 226 227 228 231 79</file>
         </tool>
-      </outputs>
+      </inputs>
     </file>
     <file>
-      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_tim2.c</name>
+      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_tim5.c</name>
       <outputs>
         <tool>
           <name>BICOMP</name>
-          <file> 98</file>
+          <file> 59</file>
         </tool>
         <tool>
           <name>ICCSTM8</name>
-          <file> 69</file>
+          <file> 38 39 56</file>
+        </tool>
+        <tool>
+          <name>__cstat</name>
+          <file> 185</file>
         </tool>
       </outputs>
-    </file>
-    <file>
-      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_tim3.c</name>
-      <outputs>
+      <inputs>
         <tool>
           <name>BICOMP</name>
-          <file> 99</file>
+          <file> 99 103 218 107 227 111 225 229 230 79 104 110 216 224 226 228 231</file>
         </tool>
         <tool>
           <name>ICCSTM8</name>
-          <file> 74</file>
+          <file> 230 103 99 104 107 110 111 216 218 224 225 226 227 228 229 231 79</file>
         </tool>
-      </outputs>
+      </inputs>
     </file>
     <file>
-      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_tim4.c</name>
+      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_usart.c</name>
       <outputs>
         <tool>
           <name>BICOMP</name>
-          <file> 100</file>
+          <file> 67</file>
         </tool>
         <tool>
           <name>ICCSTM8</name>
-          <file> 71</file>
+          <file> 210 208 54</file>
+        </tool>
+        <tool>
+          <name>__cstat</name>
+          <file> 186</file>
         </tool>
       </outputs>
+      <inputs>
+        <tool>
+          <name>BICOMP</name>
+          <file> 103 224 107 79 110 228 104 216 226 231 99 111 218 225 227 229</file>
+        </tool>
+        <tool>
+          <name>ICCSTM8</name>
+          <file> 231 103 99 104 107 110 111 216 218 224 225 226 227 228 229 79</file>
+        </tool>
+      </inputs>
     </file>
     <file>
-      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_tim5.c</name>
+      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_wfe.c</name>
       <outputs>
         <tool>
           <name>BICOMP</name>
-          <file> 78</file>
+          <file> 65</file>
         </tool>
         <tool>
           <name>ICCSTM8</name>
-          <file> 75</file>
+          <file> 14 2 53</file>
+        </tool>
+        <tool>
+          <name>__cstat</name>
+          <file> 187</file>
         </tool>
       </outputs>
+      <inputs>
+        <tool>
+          <name>BICOMP</name>
+          <file> 99 103 218 107 227 111 225 229 232 79 104 110 216 224 226 228 231</file>
+        </tool>
+        <tool>
+          <name>ICCSTM8</name>
+          <file> 232 103 99 104 107 110 111 216 218 224 225 226 227 228 229 231 79</file>
+        </tool>
+      </inputs>
     </file>
     <file>
-      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_usart.c</name>
+      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_wwdg.c</name>
       <outputs>
         <tool>
           <name>BICOMP</name>
-          <file> 21</file>
+          <file> 68</file>
         </tool>
         <tool>
           <name>ICCSTM8</name>
-          <file> 73</file>
+          <file> 41 40 57</file>
+        </tool>
+        <tool>
+          <name>__cstat</name>
+          <file> 188</file>
         </tool>
       </outputs>
+      <inputs>
+        <tool>
+          <name>BICOMP</name>
+          <file> 103 107 110 228 79 224 104 216 226 231 233 99 111 218 225 227 229</file>
+        </tool>
+        <tool>
+          <name>ICCSTM8</name>
+          <file> 233 103 99 104 107 110 111 216 218 224 225 226 227 228 229 231 79</file>
+        </tool>
+      </inputs>
     </file>
     <file>
-      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_wfe.c</name>
+      <name>$PROJ_DIR$\..\src\main.c</name>
       <outputs>
         <tool>
           <name>BICOMP</name>
-          <file> 22</file>
+          <file> 86</file>
         </tool>
         <tool>
           <name>ICCSTM8</name>
-          <file> 72</file>
+          <file> 192 199 96</file>
+        </tool>
+        <tool>
+          <name>__cstat</name>
+          <file> 190</file>
         </tool>
       </outputs>
+      <inputs>
+        <tool>
+          <name>BICOMP</name>
+          <file> 231 216 103 100 104 226 102 79 110 224 228 107 99 111 218 225 227 229</file>
+        </tool>
+        <tool>
+          <name>ICCSTM8</name>
+          <file> 103 99 104 107 110 111 216 218 224 225 226 227 228 229 231 79 102 100</file>
+        </tool>
+      </inputs>
     </file>
     <file>
-      <name>$PROJ_DIR$\..\StdPerphDrv\src\stm8l15x_wwdg.c</name>
+      <name>$PROJ_DIR$\..\src\stm8l15x_it.c</name>
       <outputs>
         <tool>
           <name>BICOMP</name>
-          <file> 23</file>
+          <file> 64</file>
         </tool>
         <tool>
           <name>ICCSTM8</name>
-          <file> 76</file>
+          <file> 4 5 52</file>
+        </tool>
+        <tool>
+          <name>__cstat</name>
+          <file> 189</file>
         </tool>
       </outputs>
+      <inputs>
+        <tool>
+          <name>BICOMP</name>
+          <file> 103 107 110 228 79 224 104 216 226 231 98 99 111 218 225 227 229</file>
+        </tool>
+        <tool>
+          <name>ICCSTM8</name>
+          <file> 98 103 99 104 107 110 111 216 218 224 225 226 227 228 229 231 79</file>
+        </tool>
+      </inputs>
     </file>
-    <forcedrebuild>
-      <name>[REBUILD_ALL]</name>
-    </forcedrebuild>
   </configuration>
   <configuration>
     <name>Release</name>

+ 2 - 2
EWSTM8/vapc-meter.ewp

@@ -669,7 +669,7 @@
         </option>
         <option>
           <name>IlinkProgramEntryLabelSelect</name>
-          <state>1</state>
+          <state>0</state>
         </option>
         <option>
           <name>IlinkProgramEntryLabel</name>
@@ -766,7 +766,7 @@
         </option>
         <option>
           <name>IlinkOptMergeDuplSections</name>
-          <state>1</state>
+          <state>0</state>
         </option>
       </data>
     </settings>

+ 2 - 2
Makefile

@@ -7,8 +7,8 @@
 PROJECT=VAPC
 
 # Location of build tools and atomthreads sources
-EWSTM8_DIR=C:\IAR\Embedded Workbench 7.0\stm8
-EWSTM8_BIN=C:/IAR/Embedded\ Workbench\ 7.0/stm8/bin
+EWSTM8_DIR=C:\IAR\Embedded Workbench 7.3\stm8
+EWSTM8_BIN=C:/IAR/Embedded\ Workbench\ 7.3/stm8/bin
 CC=$(EWSTM8_BIN)/iccstm8
 ASM=$(EWSTM8_BIN)/iasmstm8
 LINK=$(EWSTM8_BIN)/ilinkstm8

+ 15 - 13
lib/rtos.c

@@ -17,16 +17,20 @@ static __IO uint16_t TimingDelay;
  */
 inline void RTOS_Init()
 {
-  /* TIM4 configuration:
+  /*
+  TIM4 configuration:
    - TIM4CLK is set to 16 MHz, the TIM4 Prescaler is equal to 128 so the TIM1 counter
-   clock used is 16 MHz / 128 = 125 000 Hz
-  - With 125 000 Hz we can generate time base:
-      max time base is 2.048 ms if TIM4_PERIOD = 255 --> (255 + 1) / 125000 = 2.048 ms
-      min time base is 0.016 ms if TIM4_PERIOD = 1   --> (  1 + 1) / 125000 = 0.016 ms
-  - In this example we need to generate a time base equal to 1 ms
-   so TIM4_PERIOD = (0.001 * 125000 - 1) = 124 */
-
- /* Time base configuration */
+     clock used is 16 MHz / 128 = 125 000 Hz
+   - With 125 000 Hz we can generate time base:
+     max time base is 2.048 ms if TIM4_PERIOD = 255 --> (255 + 1) / 125000 = 2.048 ms
+     min time base is 0.016 ms if TIM4_PERIOD = 1   --> (  1 + 1) / 125000 = 0.016 ms
+   - In this example we need to generate a time base equal to 1 ms
+     so TIM4_PERIOD = (0.001 * 125000 - 1) = 124
+   */
+
+  /* Enable TIM4 CLK */
+  CLK_PeripheralClockConfig(CLK_Peripheral_TIM4, ENABLE);
+  /* Time base configuration */
   TIM4_TimeBaseInit(TIM4_Prescaler_128, TIM4_PERIOD);
   /* Clear TIM4 update flag */
   TIM4_ClearFlag(TIM4_FLAG_Update);
@@ -203,17 +207,15 @@ INTERRUPT_HANDLER(TIM4_UPD_OVF_TRG_IRQHandler,25)
     */
 
     /* Cleat Interrupt Pending bit */
-//    TIM4_ClearITPendingBit(TIM4_IT_Update);
     TIM4->SR1 = (uint8_t)(~(uint8_t)TIM4_IT_Update);
 
-//    TimingDelay_Decrement();
+   /* TimingDelay_Decrement() */
    if (TimingDelay > 0) {
       TimingDelay --;
    }
 
-//    RTOS_Timer();
+   /* RTOS_Timer() */
    uint8_t i;
-
    for (i=0; i<arrayTail; i++) {       // ïðîõîäèì ïî ñïèñêó çàäà÷
       if  (TaskArray[i].delay == 0) {  // åñëè âðåìÿ äî âûïîëíåíèÿ èñòåêëî
          TaskArray[i].run = 1;         // âçâîäèì ôëàã çàïóñêà,

+ 69 - 29
src/main.c

@@ -29,10 +29,20 @@
 
 /* Private typedef -----------------------------------------------------------*/
 /* Private define ------------------------------------------------------------*/
+#define LED_RED_PORT    GPIOC
+#define LED_RED_PIN     GPIO_Pin_4
+#define LED_GREEN_PORT  GPIOB
+#define LED_GREEN_PIN   GPIO_Pin_7
+
 /* Private macro -------------------------------------------------------------*/
+#define LED_RED_ON      LED_RED_PORT->ODR &= (uint8_t)(~LED_RED_PIN)
+#define LED_RED_OFF     LED_RED_PORT->ODR |= LED_RED_PIN
+#define LED_GREEN_ON    LED_GREEN_PORT->ODR &= (uint8_t)(~LED_GREEN_PIN)
+#define LED_GREEN_OFF   LED_GREEN_PORT->ODR |= LED_GREEN_PIN
+
 /* Private constant ----------------------------------------------------------*/
-// перевод числа 0-7 в номер индикатора
-static const max7219_reg_t dig[8] = {
+// перевод числа 0-7 в номер индикатора
+static const max7219_reg_t dig[8] = {
 	Digit0,
 	Digit1,
 	Digit2,
@@ -41,35 +51,37 @@ static const max7219_reg_t dig[8] = {
 	Digit5,
 	Digit6,
 	Digit7
-};
-
-// перевод значения 0x00 - 0x0F в код индикатора
-static const max7219_sym_t num[16] = {
-	Sym_0,
-	Sym_1,
-	Sym_2,
-	Sym_3,
-	Sym_4,
-	Sym_5,
-	Sym_6,
-	Sym_7,
-	Sym_8,
-	Sym_9,
-	Sym_A,
-	Sym_b,
-	Sym_C,
-	Sym_d,
-	Sym_E,
-	Sym_F
-};
+};
+
+// перевод значения 0x00 - 0x0F в код индикатора
+static const max7219_sym_t num[16] = {
+	Sym_0,
+	Sym_1,
+	Sym_2,
+	Sym_3,
+	Sym_4,
+	Sym_5,
+	Sym_6,
+	Sym_7,
+	Sym_8,
+	Sym_9,
+	Sym_A,
+	Sym_b,
+	Sym_C,
+	Sym_d,
+	Sym_E,
+	Sym_F
+};
 
 /* Private variables ---------------------------------------------------------*/
 /* Private function prototypes -----------------------------------------------*/
 static void GPIO_Config(void);
 static void CLK_Config(void);
 
+/* RTOS function prototypes -----------------------------------------------*/
 static void OutLed07(void);
 static void OutLed8f(void);
+static void ToggleLed(void);
 
 /* Private functions ---------------------------------------------------------*/
 
@@ -92,8 +104,10 @@ void main(void)
   /* MAX7219 Configuration */
   MAX7219_Init();
 
-    RTOS_SetTask(OutLed07,0,10000);
-    RTOS_SetTask(OutLed8f,5000,10000);
+  /* ROTS tasks */
+  RTOS_SetTask(OutLed07,0,10000);
+  RTOS_SetTask(OutLed8f,5000,10000);
+  RTOS_SetTask(ToggleLed,1000,1000);
 
   /* Infinite loop */
   while (1)
@@ -118,6 +132,31 @@ static void OutLed8f(void){
   }
 }
 
+static void ToggleLed(void){
+    static uint8_t state=0;
+
+    switch(state){
+    case 0:
+        LED_RED_ON;
+        state = 1;
+        break;
+    case 1:
+        LED_GREEN_ON;
+        state = 2;
+        break;
+    case 2:
+        LED_RED_OFF;
+        state = 3;
+        break;
+    case 3:
+        LED_GREEN_OFF;
+        state = 0;
+        break;
+    default:
+        state = 0;
+    }
+}
+
 
 /**
   * @brief  Configure GPIO for button available on the VAPC board
@@ -126,11 +165,12 @@ static void OutLed8f(void){
   */
 static void GPIO_Config(void)
 {
-  /* Configure GPIO used to drive KEY button */
-//    STM_EVAL_PBInit(BUTTON_KEY, BUTTON_MODE_EXTI);
+  /* Configure GPIO used to drive LEDs */
+  GPIO_Init(LED_RED_PORT, LED_RED_PIN, GPIO_Mode_Out_PP_High_Fast);
+  GPIO_Init(LED_GREEN_PORT, LED_GREEN_PIN, GPIO_Mode_Out_PP_High_Fast);
 
-    /* Enable general interrupts */
-    enableInterrupts();
+  /* Enable general interrupts */
+  enableInterrupts();
 }
 
 /**