Skip to content

Commit fec9140

Browse files
author
libhal-bot
committed
Add libhal-arm-mcu main API documentation
1 parent 7ad096f commit fec9140

File tree

7 files changed

+6
-6
lines changed

7 files changed

+6
-6
lines changed
520 Bytes
Binary file not shown.
520 Bytes
Binary file not shown.
520 Bytes
Binary file not shown.
297 Bytes
Binary file not shown.

libhal-arm-mcu/main/cortex_m/interrupt.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ <h2>NVIC (Nested Vector Interrupt Controller)<a class="headerlink" href="#nvic-n
555555
<dl class="cpp function">
556556
<dt class="sig sig-object cpp" id="_CPPv4N3hal8cortex_m29revert_interrupt_vector_tableEv">
557557
<span id="_CPPv3N3hal8cortex_m29revert_interrupt_vector_tableEv"></span><span id="_CPPv2N3hal8cortex_m29revert_interrupt_vector_tableEv"></span><span id="hal::cortex_m::revert_interrupt_vector_table"></span><span class="target" id="namespacehal_1_1cortex__m_1a947c5affbc17522beb2ed778d9cfe903"></span><span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">revert_interrupt_vector_table</span></span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4N3hal8cortex_m29revert_interrupt_vector_tableEv" title="Link to this definition">#</a><br /></dt>
558-
<dd><p>Sets the interrupt vector table back to a form where it can be initialized again(). </p>
558+
<dd><p>Sets the interrupt vector table back to a form where it can be initialized <a class="reference internal" href="system_control.html#namespacehal_1_1cortex__m_1a1f0421e03f922c823364d51f5decea5c"><span class="std std-ref">again()</span></a>. </p>
559559
<p>Recommended to never call this function in your application. If it is called, it should be well documented why this choice was necessary.</p>
560560
<p>Will clear all pending interrupts and sets the internal state to uninitialized. This call is dangerous and should only be done before any drivers depend on their interrupts to function. </p>
561561
</dd></dl>
@@ -783,7 +783,7 @@ <h2>NVIC (Nested Vector Interrupt Controller)<a class="headerlink" href="#nvic-n
783783
<dl class="cpp function">
784784
<dt class="sig sig-object cpp" id="_CPPv4N3hal8cortex_m23initialize_data_sectionEv">
785785
<span id="_CPPv3N3hal8cortex_m23initialize_data_sectionEv"></span><span id="_CPPv2N3hal8cortex_m23initialize_data_sectionEv"></span><span id="hal::cortex_m::initialize_data_section"></span><span class="target" id="namespacehal_1_1cortex__m_1afac39d4a10412fa8f81c53511e4759ed"></span><span class="k"><span class="pre">inline</span></span><span class="w"> </span><span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">initialize_data_section</span></span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4N3hal8cortex_m23initialize_data_sectionEv" title="Link to this definition">#</a><br /></dt>
786-
<dd><p>Initialize the data section of RAM. This should be the first thing called in main() before using any global or statically allocated variables. It can also be called in the startup code before main is called. This is not done by crt0.s (C runtime startup code) because with an OS, when the executable is copied to RAM, the data section is also copied and those same locations can be reused for the application, removing the need to copy the data section. This will also happen if one loads an elf file to an MCU using a debugger. Typically the RAM section, but not BSS, is copied over. But in the case of the MCU without a debugger, the MCU will have to manage coping the contents from ROM to RAM itself. Systems should always assume they haven’t been loaded by any means and should set the data section at the start of the application. </p>
786+
<dd><p>Initialize the data section of RAM. This should be the first thing called in <a class="reference internal" href="system_control.html#namespacehal_1_1cortex__m_1a1f0421e03f922c823364d51f5decea5c"><span class="std std-ref">main()</span></a> before using any global or statically allocated variables. It can also be called in the startup code before main is called. This is not done by crt0.s (C runtime startup code) because with an OS, when the executable is copied to RAM, the data section is also copied and those same locations can be reused for the application, removing the need to copy the data section. This will also happen if one loads an elf file to an MCU using a debugger. Typically the RAM section, but not BSS, is copied over. But in the case of the MCU without a debugger, the MCU will have to manage coping the contents from ROM to RAM itself. Systems should always assume they haven’t been loaded by any means and should set the data section at the start of the application. </p>
787787
</dd></dl>
788788

789789
<dl class="cpp function">

libhal-arm-mcu/main/cortex_m/startup.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ <h2>ARM Cortex-M Startup Utilities<a class="headerlink" href="#arm-cortex-m-star
555555
<dl class="cpp function">
556556
<dt class="sig sig-object cpp" id="_CPPv4N3hal8cortex_m29revert_interrupt_vector_tableEv">
557557
<span id="_CPPv3N3hal8cortex_m29revert_interrupt_vector_tableEv"></span><span id="_CPPv2N3hal8cortex_m29revert_interrupt_vector_tableEv"></span><span id="hal::cortex_m::revert_interrupt_vector_table"></span><span class="target" id="namespacehal_1_1cortex__m_1a947c5affbc17522beb2ed778d9cfe903"></span><span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">revert_interrupt_vector_table</span></span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><br /></dt>
558-
<dd><p>Sets the interrupt vector table back to a form where it can be initialized again(). </p>
558+
<dd><p>Sets the interrupt vector table back to a form where it can be initialized <a class="reference internal" href="system_control.html#namespacehal_1_1cortex__m_1a1f0421e03f922c823364d51f5decea5c"><span class="std std-ref">again()</span></a>. </p>
559559
<p>Recommended to never call this function in your application. If it is called, it should be well documented why this choice was necessary.</p>
560560
<p>Will clear all pending interrupts and sets the internal state to uninitialized. This call is dangerous and should only be done before any drivers depend on their interrupts to function. </p>
561561
</dd></dl>
@@ -783,7 +783,7 @@ <h2>ARM Cortex-M Startup Utilities<a class="headerlink" href="#arm-cortex-m-star
783783
<dl class="cpp function">
784784
<dt class="sig sig-object cpp" id="_CPPv4N3hal8cortex_m23initialize_data_sectionEv">
785785
<span id="_CPPv3N3hal8cortex_m23initialize_data_sectionEv"></span><span id="_CPPv2N3hal8cortex_m23initialize_data_sectionEv"></span><span id="hal::cortex_m::initialize_data_section"></span><span class="target" id="namespacehal_1_1cortex__m_1afac39d4a10412fa8f81c53511e4759ed"></span><span class="k"><span class="pre">inline</span></span><span class="w"> </span><span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">initialize_data_section</span></span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><br /></dt>
786-
<dd><p>Initialize the data section of RAM. This should be the first thing called in main() before using any global or statically allocated variables. It can also be called in the startup code before main is called. This is not done by crt0.s (C runtime startup code) because with an OS, when the executable is copied to RAM, the data section is also copied and those same locations can be reused for the application, removing the need to copy the data section. This will also happen if one loads an elf file to an MCU using a debugger. Typically the RAM section, but not BSS, is copied over. But in the case of the MCU without a debugger, the MCU will have to manage coping the contents from ROM to RAM itself. Systems should always assume they haven’t been loaded by any means and should set the data section at the start of the application. </p>
786+
<dd><p>Initialize the data section of RAM. This should be the first thing called in <a class="reference internal" href="system_control.html#namespacehal_1_1cortex__m_1a1f0421e03f922c823364d51f5decea5c"><span class="std std-ref">main()</span></a> before using any global or statically allocated variables. It can also be called in the startup code before main is called. This is not done by crt0.s (C runtime startup code) because with an OS, when the executable is copied to RAM, the data section is also copied and those same locations can be reused for the application, removing the need to copy the data section. This will also happen if one loads an elf file to an MCU using a debugger. Typically the RAM section, but not BSS, is copied over. But in the case of the MCU without a debugger, the MCU will have to manage coping the contents from ROM to RAM itself. Systems should always assume they haven’t been loaded by any means and should set the data section at the start of the application. </p>
787787
</dd></dl>
788788

789789
<dl class="cpp function">

libhal-arm-mcu/main/cortex_m/system_control.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ <h2>ARM Cortex-M System Control Functions<a class="headerlink" href="#arm-cortex
555555
<dl class="cpp function">
556556
<dt class="sig sig-object cpp" id="_CPPv4N3hal8cortex_m29revert_interrupt_vector_tableEv">
557557
<span id="_CPPv3N3hal8cortex_m29revert_interrupt_vector_tableEv"></span><span id="_CPPv2N3hal8cortex_m29revert_interrupt_vector_tableEv"></span><span id="hal::cortex_m::revert_interrupt_vector_table"></span><span class="target" id="namespacehal_1_1cortex__m_1a947c5affbc17522beb2ed778d9cfe903"></span><span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">revert_interrupt_vector_table</span></span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><br /></dt>
558-
<dd><p>Sets the interrupt vector table back to a form where it can be initialized again(). </p>
558+
<dd><p>Sets the interrupt vector table back to a form where it can be initialized <a class="reference internal" href="#namespacehal_1_1cortex__m_1a1f0421e03f922c823364d51f5decea5c"><span class="std std-ref">again()</span></a>. </p>
559559
<p>Recommended to never call this function in your application. If it is called, it should be well documented why this choice was necessary.</p>
560560
<p>Will clear all pending interrupts and sets the internal state to uninitialized. This call is dangerous and should only be done before any drivers depend on their interrupts to function. </p>
561561
</dd></dl>
@@ -783,7 +783,7 @@ <h2>ARM Cortex-M System Control Functions<a class="headerlink" href="#arm-cortex
783783
<dl class="cpp function">
784784
<dt class="sig sig-object cpp" id="_CPPv4N3hal8cortex_m23initialize_data_sectionEv">
785785
<span id="_CPPv3N3hal8cortex_m23initialize_data_sectionEv"></span><span id="_CPPv2N3hal8cortex_m23initialize_data_sectionEv"></span><span id="hal::cortex_m::initialize_data_section"></span><span class="target" id="namespacehal_1_1cortex__m_1afac39d4a10412fa8f81c53511e4759ed"></span><span class="k"><span class="pre">inline</span></span><span class="w"> </span><span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">initialize_data_section</span></span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><br /></dt>
786-
<dd><p>Initialize the data section of RAM. This should be the first thing called in main() before using any global or statically allocated variables. It can also be called in the startup code before main is called. This is not done by crt0.s (C runtime startup code) because with an OS, when the executable is copied to RAM, the data section is also copied and those same locations can be reused for the application, removing the need to copy the data section. This will also happen if one loads an elf file to an MCU using a debugger. Typically the RAM section, but not BSS, is copied over. But in the case of the MCU without a debugger, the MCU will have to manage coping the contents from ROM to RAM itself. Systems should always assume they haven’t been loaded by any means and should set the data section at the start of the application. </p>
786+
<dd><p>Initialize the data section of RAM. This should be the first thing called in <a class="reference internal" href="#namespacehal_1_1cortex__m_1a1f0421e03f922c823364d51f5decea5c"><span class="std std-ref">main()</span></a> before using any global or statically allocated variables. It can also be called in the startup code before main is called. This is not done by crt0.s (C runtime startup code) because with an OS, when the executable is copied to RAM, the data section is also copied and those same locations can be reused for the application, removing the need to copy the data section. This will also happen if one loads an elf file to an MCU using a debugger. Typically the RAM section, but not BSS, is copied over. But in the case of the MCU without a debugger, the MCU will have to manage coping the contents from ROM to RAM itself. Systems should always assume they haven’t been loaded by any means and should set the data section at the start of the application. </p>
787787
</dd></dl>
788788

789789
<dl class="cpp function">

0 commit comments

Comments
 (0)