Skip to content

Commit

Permalink
Does not recompile examples every time. Compile only when it changed.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoblin committed Dec 24, 2024
1 parent 0325f18 commit b41c9dd
Show file tree
Hide file tree
Showing 101 changed files with 4,610 additions and 42 deletions.
2 changes: 1 addition & 1 deletion VERSION_HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@
* Fix timer0_mode2_reload - TH0 value should be set, now used TL0
* Fix INT0 should be defined in timer0 modes
* timerX_modeX_direct_{reload, start}(TxH, TxL) for direct set TLx, THx registers implemented
* Does not recompile examples every time. Compile only when it changed.

Next releases todo
* TODO Does not recompile examples every time. Compile only when it changed.
* TODO Suppress compiler output for examples on non verbose build
* TODO Implement counters
* TODO Implement UART
Expand Down
5 changes: 4 additions & 1 deletion compile_examples.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import os

from SCons.Script import SConscript

Import("env")

print("Add examples to build configuration")

env.Execute(['cd examples ; scons ; rm -rf build'])
env.SConscript('examples/SConstruct', exports = 'env')
#env.Execute(['cd examples ; scons ; rm -rf build'])
75 changes: 75 additions & 0 deletions docs/html/dir_000000_000018.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.4"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>STC15W408AS library: examples/timer/mode0/timer0/async -&gt; include Relation</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">STC15W408AS library<span id="projectnumber">&#160;0.9.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d28a4824dc47e487b107a5db32ef43c4.html">examples</a></li><li class="navelem"><a class="el" href="dir_e7ce32aeeb928923d1462842b69c3a0e.html">timer</a></li><li class="navelem"><a class="el" href="dir_0ab0ebc9663244eb06813df0abd15c34.html">mode0</a></li><li class="navelem"><a class="el" href="dir_c3865279144d5f1f1b91e4f8379d333c.html">timer0</a></li><li class="navelem"><a class="el" href="dir_ba8212d23731dc9193404f8ce16c722e.html">async</a></li> </ul>
</div>
</div><!-- top -->
<div class="contents">
<h3>async &rarr; include Relation</h3><table class="dirtab"><tr class="dirtab"><th class="dirtab">File in examples/timer/mode0/timer0/async</th><th class="dirtab">Includes file in include</th></tr><tr class="dirtab"><td class="dirtab"><b>timer0_mode0_12T_interrupt_example.c</b></td><td class="dirtab"><a class="el" href="timer0__mode0_8h.html">timer0_mode0.h</a></td></tr><tr class="dirtab"><td class="dirtab"><b>timer0_mode0_1T_interrupt_example.c</b></td><td class="dirtab"><a class="el" href="delay_8h.html">delay.h</a></td></tr><tr class="dirtab"><td class="dirtab"><b>timer0_mode0_1T_interrupt_example.c</b></td><td class="dirtab"><a class="el" href="timer0__mode0_8h.html">timer0_mode0.h</a></td></tr><tr class="dirtab"><td class="dirtab"><b>timer0_mode0_direct_reload_example.c</b></td><td class="dirtab"><a class="el" href="delay_8h.html">delay.h</a></td></tr><tr class="dirtab"><td class="dirtab"><b>timer0_mode0_direct_reload_example.c</b></td><td class="dirtab"><a class="el" href="timer0__mode0_8h.html">timer0_mode0.h</a></td></tr><tr class="dirtab"><td class="dirtab"><b>timer0_mode0_direct_start_example.c</b></td><td class="dirtab"><a class="el" href="timer0__mode0_8h.html">timer0_mode0.h</a></td></tr><tr class="dirtab"><td class="dirtab"><b>timer0_mode0_pause_by_gate_example.c</b></td><td class="dirtab"><a class="el" href="delay_8h.html">delay.h</a></td></tr><tr class="dirtab"><td class="dirtab"><b>timer0_mode0_pause_by_gate_example.c</b></td><td class="dirtab"><a class="el" href="timer0__mode0_8h.html">timer0_mode0.h</a></td></tr><tr class="dirtab"><td class="dirtab"><b>timer0_mode0_reload_example.c</b></td><td class="dirtab"><a class="el" href="delay_8h.html">delay.h</a></td></tr><tr class="dirtab"><td class="dirtab"><b>timer0_mode0_reload_example.c</b></td><td class="dirtab"><a class="el" href="timer0__mode0_8h.html">timer0_mode0.h</a></td></tr></table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4
</small></address>
</body>
</html>
75 changes: 75 additions & 0 deletions docs/html/dir_000001_000018.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.4"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>STC15W408AS library: examples/timer/mode1/async -&gt; include Relation</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">STC15W408AS library<span id="projectnumber">&#160;0.9.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d28a4824dc47e487b107a5db32ef43c4.html">examples</a></li><li class="navelem"><a class="el" href="dir_e7ce32aeeb928923d1462842b69c3a0e.html">timer</a></li><li class="navelem"><a class="el" href="dir_5dcc49fa1246d6dbdd1dd0bcffacb92b.html">mode1</a></li><li class="navelem"><a class="el" href="dir_fffa5b75419484447040af1522d93955.html">async</a></li> </ul>
</div>
</div><!-- top -->
<div class="contents">
<h3>async &rarr; include Relation</h3><table class="dirtab"><tr class="dirtab"><th class="dirtab">File in examples/timer/mode1/async</th><th class="dirtab">Includes file in include</th></tr><tr class="dirtab"><td class="dirtab"><b>timer0_mode1_1T_interrupt_example.c</b></td><td class="dirtab"><a class="el" href="delay_8h.html">delay.h</a></td></tr><tr class="dirtab"><td class="dirtab"><b>timer0_mode1_1T_interrupt_example.c</b></td><td class="dirtab"><a class="el" href="frequency_8h.html">frequency.h</a></td></tr><tr class="dirtab"><td class="dirtab"><b>timer0_mode1_1T_interrupt_example.c</b></td><td class="dirtab"><a class="el" href="timer0__mode1_8h.html">timer0_mode1.h</a></td></tr><tr class="dirtab"><td class="dirtab"><b>timer0_mode1_direct_start_example.c</b></td><td class="dirtab"><a class="el" href="timer0__mode1_8h.html">timer0_mode1.h</a></td></tr><tr class="dirtab"><td class="dirtab"><b>timer0_mode1_pause_by_gate_example.c</b></td><td class="dirtab"><a class="el" href="delay_8h.html">delay.h</a></td></tr><tr class="dirtab"><td class="dirtab"><b>timer0_mode1_pause_by_gate_example.c</b></td><td class="dirtab"><a class="el" href="timer0__mode1_8h.html">timer0_mode1.h</a></td></tr></table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4
</small></address>
</body>
</html>
75 changes: 75 additions & 0 deletions docs/html/dir_000002_000018.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.4"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>STC15W408AS library: examples/timer/mode2/async -&gt; include Relation</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">STC15W408AS library<span id="projectnumber">&#160;0.9.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d28a4824dc47e487b107a5db32ef43c4.html">examples</a></li><li class="navelem"><a class="el" href="dir_e7ce32aeeb928923d1462842b69c3a0e.html">timer</a></li><li class="navelem"><a class="el" href="dir_c7ade2e42305383275ac2e23c38c693f.html">mode2</a></li><li class="navelem"><a class="el" href="dir_71a137cd93d92dfcec446dcc3509f576.html">async</a></li> </ul>
</div>
</div><!-- top -->
<div class="contents">
<h3>async &rarr; include Relation</h3><table class="dirtab"><tr class="dirtab"><th class="dirtab">File in examples/timer/mode2/async</th><th class="dirtab">Includes file in include</th></tr><tr class="dirtab"><td class="dirtab"><b>timer0_mode2_12T_interrupt_example.c</b></td><td class="dirtab"><a class="el" href="timer0__mode2_8h.html">timer0_mode2.h</a></td></tr><tr class="dirtab"><td class="dirtab"><b>timer0_mode2_direct_reload_example.c</b></td><td class="dirtab"><a class="el" href="delay_8h.html">delay.h</a></td></tr><tr class="dirtab"><td class="dirtab"><b>timer0_mode2_direct_reload_example.c</b></td><td class="dirtab"><a class="el" href="frequency_8h.html">frequency.h</a></td></tr><tr class="dirtab"><td class="dirtab"><b>timer0_mode2_direct_reload_example.c</b></td><td class="dirtab"><a class="el" href="timer0__mode2_8h.html">timer0_mode2.h</a></td></tr><tr class="dirtab"><td class="dirtab"><b>timer0_mode2_direct_start_example.c</b></td><td class="dirtab"><a class="el" href="frequency_8h.html">frequency.h</a></td></tr><tr class="dirtab"><td class="dirtab"><b>timer0_mode2_direct_start_example.c</b></td><td class="dirtab"><a class="el" href="timer0__mode2_8h.html">timer0_mode2.h</a></td></tr></table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4
</small></address>
</body>
</html>
Loading

0 comments on commit b41c9dd

Please sign in to comment.