Skip to content

Commit 5879a74

Browse files
committed
Updated Doxygen documentation
1 parent de25642 commit 5879a74

20 files changed

+346
-334
lines changed

docs/dbprint_8c.html

Lines changed: 130 additions & 128 deletions
Large diffs are not rendered by default.

docs/dbprint_8c_source.html

Lines changed: 47 additions & 47 deletions
Large diffs are not rendered by default.

docs/dbprint_8h.html

Lines changed: 96 additions & 96 deletions
Large diffs are not rendered by default.

docs/dbprint_8h_source.html

Lines changed: 27 additions & 27 deletions
Large diffs are not rendered by default.

docs/dbprint__documentation_8h.html

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
<p><a href="dbprint__documentation_8h_source.html">Go to the source code of this file.</a></p>
7171
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
7272
<div class="textblock"><p>This file contains useful documentation closely related to dbprint. </p>
73-
<dl class="section version"><dt>Version</dt><dd>6.2 </dd></dl>
73+
<dl class="section version"><dt>Version</dt><dd>7.0 </dd></dl>
7474
<dl class="section author"><dt>Author</dt><dd>Brecht Van Eeckhoudt</dd></dl>
7575
<hr/>
7676
<h1><a class="anchor" id="DeBugPrint"></a>
@@ -84,28 +84,27 @@ <h1><a class="anchor" id="Doxygen"></a>
8484
<h1><a class="anchor" id="ENABLE"></a>
8585
Enable/disable dbprint using definition in `debug_dbprint.h`</h1>
8686
<p>In the file <code><a class="el" href="debug__dbprint_8h.html" title="Enable or disable printing to UART with dbprint. ">debug_dbprint.h</a></code> <b>dbprint UART functionality can be enabled/disabled</b> with the definition <code>#define DEBUG_DBPRINT</code>. If it's value is <code>0</code>, all dbprint functionality is disabled.</p>
87-
<dl class="section note"><dt>Note</dt><dd>This means that the <b>only header file to include in your projects</b> for dbprint to work is<br />
88-
<code>#include <a class="el" href="debug__dbprint_8h.html" title="Enable or disable printing to UART with dbprint. ">debug_dbprint.h</a></code></dd>
89-
<dd>
90-
If you also want to use this definition to enable/disable dbprint statements in your code, please use the following convention:<br />
87+
<dl class="section warning"><dt>Warning</dt><dd>This means that the <b>only header file to include in your projects</b> for dbprint to work is<br />
88+
<code>#include <a class="el" href="debug__dbprint_8h.html" title="Enable or disable printing to UART with dbprint. ">debug_dbprint.h</a></code></dd></dl>
89+
<dl class="section note"><dt>Note</dt><dd>If you also want to use this definition to enable/disable dbprint statements in your code, please use the following convention:<br />
9190
<code>#if DEBUG_DBPRINT == 1 // DEBUG_DBPRINT</code><br />
9291
<code>&lt;your source code dbprint statements go here&gt;</code><br />
9392
<code>#endif // DEBUG_DBPRINT</code></dd></dl>
9493
<hr/>
9594
<h1><a class="anchor" id="DBPRINT"></a>
96-
More info about dbprint and VCOM</h1>
97-
<p>VCOM is an on-board (SLSTK3400A) UART to USB converter alongside the Segger J-Link debugger, connected with microcontroller pins <code>PA0</code> (RX) and <code>PF2</code> (TX). This converter can then be used with Putty or another serial port program.</p>
98-
<dl class="section note"><dt>Note</dt><dd>When you want to debug using VCOM with interrupt functionality disabled, you can use the following initialization settings:<br />
99-
<code>dbprint_INIT(USART1, 4, true, false);</code></dd>
100-
<dd>
101-
When using <code>dbprint</code> functionality, the following settings are used:<br />
95+
More info about dbprint (and VCOM)</h1>
96+
<dl class="section note"><dt>Note</dt><dd>When using <code>dbprint</code> functionality, the following settings are used and can't be changed without editing the source code:<br />
10297
<ul>
10398
<li>Baudrate = 115200</li>
10499
<li>8 databits</li>
105100
<li>1 stopbit</li>
106101
<li>No parity</li>
107102
</ul>
108103
</dd></dl>
104+
<p>VCOM is an on-board (SLSTK3400A) UART to USB converter alongside the Segger J-Link debugger, connected with microcontroller pins <code>PA0</code> (RX) and <code>PF2</code> (TX). This converter can then be used with Putty or another serial port program.</p>
105+
<dl class="section note"><dt>Note</dt><dd>When you want to debug using VCOM with interrupt functionality disabled, you can use the following initialization settings:<br />
106+
<code>dbprint_INIT(USART1, 4, true, false);</code></dd></dl>
107+
<dl class="section warning"><dt>Warning</dt><dd>Setting the third argument to <code>true</code> indicates to the code that <code>PA9</code> (<code>EFM_BC_EN</code>) should be set high to enable the isolation switch on the PCB of the Happy Gecko to link <code>PA0</code> (RX) and <code>PF2</code> (TX) to the debugger. Don't use this pin yourself if you want to make use of the on-board UART to USB converter!</dd></dl>
109108
<hr/>
110109
<h1><a class="anchor" id="ENERGY"></a>
111110
Energy profiler and dbprint</h1>
@@ -132,19 +131,25 @@ <h1><a class="anchor" id="UART"></a>
132131
<li>USART1 #4 (USART0 can't be used)</li>
133132
<li>RX - <code>PA0</code></li>
134133
<li>TX - <code>PF2</code></li>
134+
<li>Isolation switch - <code>PA9</code> (<code>EFM_BC_EN</code>) (don't use this pin yourself when using the on-board UART to USB converter)</li>
135135
</ul>
136136
<hr/>
137137
<h1><a class="anchor" id="Keywords"></a>
138138
Keywords</h1>
139139
<h2><a class="anchor" id="Volatile"></a>
140140
Volatile</h2>
141-
<p>The <code>volatile</code> type indicates to the compiler that the data is not normal memory, and could change at unexpected times. Hardware registers are often volatile, and so are variables which get changed in interrupts.</p>
141+
<p>The <code>volatile</code> type indicates to the compiler that the data is not normal memory, and could change at unexpected times. Hardware registers are often volatile, and so are variables which get changed in interrupts.<br />
142+
Volatile variables are stored in <em>RAM</em>.</p>
142143
<h2><a class="anchor" id="Static"></a>
143144
Static</h2>
144-
<ul>
145-
<li><b>Static variable inside a function:</b> The variable keeps its value between invocations.</li>
146-
<li><b>Static global variable or function:</b> The variable or function is only "seen" in the file it's declared in.</li>
147-
</ul>
145+
<h3><a class="anchor" id="VARIABLE"></a>
146+
Static variable</h3>
147+
<p>During compile time (this is why we can't use variable length array's) memory gets reserved for this variable. The data itself gets put in the <em>data</em> segment of the memory (regular variables are put in the <em>stack</em> segment).<br />
148+
It's best to keep the use of <code>static</code> variables to a minimum. One should ask himself the question if it's necessary to keep the variable constantly in the memory. If the answer is yes, a <code>static</code> variable is acceptable.<br />
149+
A <b>static variable inside a function</b> keeps its value between invocations.</p>
150+
<h3><a class="anchor" id="FUNCTION"></a>
151+
Static global function</h3>
152+
<p>The function is only "seen" in the file it's declared in. This means <code>static</code> can be used for methods the same way <code>private</code> is used for certain methods in C++.</p>
148153
<hr/>
149154
<h1><a class="anchor" id="DATA"></a>
150155
Bits, bytes, nibbles and unsigned/signed integer value ranges</h1>
@@ -170,6 +175,10 @@ <h1><a class="anchor" id="DATA"></a>
170175
<tr>
171176
<td><code>int32_t</code> </td><td><code>signed int</code> </td><td>4 bytes </td><td>-2 147 483 648 </td><td>2 147 483 647 </td></tr>
172177
</table>
178+
<ul>
179+
<li><code>-128</code> = <code>0x80</code> = <code>0b1000 0000</code> (If the left most bit is one, the sign of the number is negative)</li>
180+
<li><code>127</code> = <code>0x7F</code> = <code>0b0111 1111</code> </li>
181+
</ul>
173182

174183
<p class="definition">Definition in file <a class="el" href="dbprint__documentation_8h_source.html">dbprint_documentation.h</a>.</p>
175184
</div></div><!-- contents -->
@@ -178,7 +187,7 @@ <h1><a class="anchor" id="DATA"></a>
178187
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
179188
<ul>
180189
<li class="navelem"><a class="el" href="dir_ca5fbc3f6f6667caf4918c667fbe5e47.html">dbprint</a></li><li class="navelem"><a class="el" href="dbprint__documentation_8h.html">dbprint_documentation.h</a></li>
181-
<li class="footer">Generated on Fri Oct 4 2019 21:50:44 for DeBugPrint (dbprint) by
190+
<li class="footer">Generated on Sun Nov 17 2019 20:57:52 for DeBugPrint (dbprint) by
182191
<a href="http://www.doxygen.org/index.html">
183192
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
184193
</ul>

docs/dbprint__documentation_8h_source.html

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

docs/debug__dbprint_8h.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
</table>
8080
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
8181
<div class="textblock"><p>Enable or disable printing to UART with dbprint. </p>
82-
<p><b>This header file should be called in every other file where there are UART dbprint debugging statements. Depending on the value of <code>DEBUG_DBPRINT</code>, UART statements are enabled or disabled.</b> </p><dl class="section version"><dt>Version</dt><dd>6.2 </dd></dl>
82+
<p><b>This header file should be called in every other file where there are UART dbprint debugging statements. Depending on the value of <code>DEBUG_DBPRINT</code>, UART statements are enabled or disabled.</b> </p><dl class="section version"><dt>Version</dt><dd>7.0 </dd></dl>
8383
<dl class="section author"><dt>Author</dt><dd>Brecht Van Eeckhoudt</dd></dl>
8484
<hr/>
8585
<h1><a class="anchor" id="License"></a>
@@ -119,7 +119,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#a4ef257e0f94ec070ab7a49a0
119119
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
120120
<ul>
121121
<li class="navelem"><a class="el" href="dir_ca5fbc3f6f6667caf4918c667fbe5e47.html">dbprint</a></li><li class="navelem"><a class="el" href="debug__dbprint_8h.html">debug_dbprint.h</a></li>
122-
<li class="footer">Generated on Fri Oct 4 2019 21:50:44 for DeBugPrint (dbprint) by
122+
<li class="footer">Generated on Sun Nov 17 2019 20:57:52 for DeBugPrint (dbprint) by
123123
<a href="http://www.doxygen.org/index.html">
124124
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
125125
</ul>

docs/debug__dbprint_8h_source.html

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

docs/dir_ca5fbc3f6f6667caf4918c667fbe5e47.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
8686
<ul>
8787
<li class="navelem"><a class="el" href="dir_ca5fbc3f6f6667caf4918c667fbe5e47.html">dbprint</a></li>
88-
<li class="footer">Generated on Fri Oct 4 2019 21:50:44 for DeBugPrint (dbprint) by
88+
<li class="footer">Generated on Sun Nov 17 2019 20:57:52 for DeBugPrint (dbprint) by
8989
<a href="http://www.doxygen.org/index.html">
9090
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
9191
</ul>

docs/files.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
<!-- start footer part -->
7878
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
7979
<ul>
80-
<li class="footer">Generated on Fri Oct 4 2019 21:50:44 for DeBugPrint (dbprint) by
80+
<li class="footer">Generated on Sun Nov 17 2019 20:57:52 for DeBugPrint (dbprint) by
8181
<a href="http://www.doxygen.org/index.html">
8282
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
8383
</ul>

0 commit comments

Comments
 (0)