Skip to content

Commit

Permalink
Fix timer0_mode2_reload - TH0 value should be set, now used TL0
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoblin committed Dec 24, 2024
1 parent 811adc7 commit 64ad33b
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions VERSION_HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@

0.9
* Pin module set port mode routines implemented
* Fix examples/mode0/timer2 compilation
* Fix timer0_mode2_reload - TH0 value should be set, now used TL0

Next releases todo
* TODO Implement timer_modeX_direct_*(TxH, TxL) for direct set TLx, THx registers
* Fix timer0_mode2_reload - TH0 value should be set, now used TL0
* Fix examples/mode0/timer2 compilation
* 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
Expand Down
4 changes: 2 additions & 2 deletions docs/html/group__timer0__mode2.html
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,8 @@ <h2 class="memtitle"><span class="permalink"><a href="#ga284f2dc9df428c479b10b00
</table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">{ \</div>
<div class="line"> <span class="comment">/* Load timer high and low bytes value */</span> \</div>
<div class="line"> TL0 = (0xff - ticks); \</div>
<div class="line"> <span class="comment">/* Load timer value */</span> \</div>
<div class="line"> TH0 = (0xff - ticks); \</div>
<div class="line">}</div>
</div><!-- fragment -->
<p>Reload timer0 mode2 ticks on the fly. </p>
Expand Down
4 changes: 2 additions & 2 deletions docs/html/md_VERSION_HISTORY.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,11 @@
</ul>
<p >0.9</p><ul>
<li>Pin module set port mode routines implemented</li>
<li>Fix examples/mode0/timer2 compilation</li>
<li>Fix timer0_mode2_reload - TH0 value should be set, now used TL0</li>
</ul>
<p >Next releases todo</p><ul>
<li>TODO Implement timer_modeX_direct_*(TxH, TxL) for direct set TLx, THx registers</li>
<li>Fix timer0_mode2_reload - TH0 value should be set, now used TL0</li>
<li>Fix examples/mode0/timer2 compilation</li>
<li>TODO Does not recompile examples every time. Compile only when it changed.</li>
<li>TODO Suppress compiler output for examples on non verbose build</li>
<li>TODO Implement counters</li>
Expand Down
4 changes: 2 additions & 2 deletions docs/html/timer0__mode2_8h_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> </div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"><a class="line" href="group__timer0__mode2.html#ga284f2dc9df428c479b10b00e4faa11e1"> 144</a></span><span class="preprocessor">#define timer0_mode2_reload(ticks) \</span></div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span><span class="preprocessor">{ \</span></div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span><span class="preprocessor"> </span><span class="comment">/* Load timer high and low bytes value */</span><span class="preprocessor"> \</span></div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span><span class="preprocessor"> TL0 = (0xff - ticks); \</span></div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span><span class="preprocessor"> </span><span class="comment">/* Load timer value */</span><span class="preprocessor"> \</span></div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span><span class="preprocessor"> TH0 = (0xff - ticks); \</span></div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span><span class="preprocessor">}</span></div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> </div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"><a class="line" href="group__timer0__mode2.html#gaf7ad497fd1d2ee5db793dae33d911d68"> 158</a></span><span class="preprocessor">#define timer0_mode2_direct_reload(th0) (TH0 = th0)</span></div>
Expand Down
Binary file modified examples/.sconsign.dblite
Binary file not shown.
4 changes: 2 additions & 2 deletions include/timer0_mode2.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@
*/
#define timer0_mode2_reload(ticks) \
{ \
/* Load timer high and low bytes value */ \
TL0 = (0xff - ticks); \
/* Load timer value */ \
TH0 = (0xff - ticks); \
}

/**
Expand Down

0 comments on commit 64ad33b

Please sign in to comment.