mirror of
https://salsa.debian.org/gnuk-team/gnuk/gnuk.git
synced 2024-09-21 11:20:08 +00:00
174 lines
10 KiB
HTML
174 lines
10 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
|
<title>ChibiOS/RT: chibios_rt::System Class Reference</title>
|
|
<link href="custom.css" rel="stylesheet" type="text/css">
|
|
<link href="tabs.css" rel="stylesheet" type="text/css">
|
|
</head><body>
|
|
<table style="text-align: center; width: 100%;" border="0"
|
|
cellpadding="2" cellspacing="2">
|
|
<tbody>
|
|
<tr>
|
|
<td style="width: 80px;"><img alt="ChibiOS/RT Logo" src="logo_small.png"></td>
|
|
<td><big><big>ChibiOS/RT</big></big><br><br>Architecture - Reference Manual - Guides</td>
|
|
<td style="width: 80px;"></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<hr size="1">
|
|
<!-- Generated by Doxygen 1.6.3 -->
|
|
<div class="navigation" id="top">
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="main.html"><span>Main Page</span></a></li>
|
|
<li><a href="modules.html"><span>Modules</span></a></li>
|
|
<li class="current"><a href="annotated.html"><span>Data Structures</span></a></li>
|
|
<li><a href="files.html"><span>Files</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="annotated.html"><span>Data Structures</span></a></li>
|
|
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
|
<li><a href="functions.html"><span>Data Fields</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="navpath"><b>chibios_rt</b>::<a class="el" href="classchibios__rt_1_1_system.html">System</a>
|
|
</div>
|
|
</div>
|
|
<div class="contents">
|
|
<h1>chibios_rt::System Class Reference</h1><!-- doxytag: class="chibios_rt::System" -->
|
|
<p>Class encapsulating the base system functionalities.
|
|
<a href="#_details">More...</a></p>
|
|
|
|
<p><code>#include <<a class="el" href="ch_8hpp_source.html">ch.hpp</a>></code></p>
|
|
<table border="0" cellpadding="0" cellspacing="0">
|
|
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classchibios__rt_1_1_system.html#a368a84ccf6f537f7ba732829cbb29281">Init</a> (void)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">ChibiOS/RT initialization. <a href="#a368a84ccf6f537f7ba732829cbb29281"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classchibios__rt_1_1_system.html#a464d3fc171938b9387872fc9cdaa78a6">Lock</a> (void)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Kernel lock. <a href="#a464d3fc171938b9387872fc9cdaa78a6"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classchibios__rt_1_1_system.html#affaa69004bd8f952aebce80cffff673f">Unlock</a> (void)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Kernel unlock. <a href="#affaa69004bd8f952aebce80cffff673f"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="group___s_t_m8___c_o_r_e.html#gac46524873fe28f00864e5ebe155bb523">systime_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classchibios__rt_1_1_system.html#a74fb442c63f2a34c0a81dbfa42319976">GetTime</a> (void)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the system time as system ticks. <a href="#a74fb442c63f2a34c0a81dbfa42319976"></a><br/></td></tr>
|
|
</table>
|
|
<hr/><a name="_details"></a><h2>Detailed Description</h2>
|
|
<p>Class encapsulating the base system functionalities. </p>
|
|
|
|
<p>Definition at line <a class="el" href="ch_8hpp_source.html#l00044">44</a> of file <a class="el" href="ch_8hpp_source.html">ch.hpp</a>.</p>
|
|
<hr/><h2>Member Function Documentation</h2>
|
|
<a class="anchor" id="a368a84ccf6f537f7ba732829cbb29281"></a><!-- doxytag: member="chibios_rt::System::Init" ref="a368a84ccf6f537f7ba732829cbb29281" args="(void)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void chibios_rt::System::Init </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void </td>
|
|
<td class="paramname"></td>
|
|
<td> ) </td>
|
|
<td><code> [static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>ChibiOS/RT initialization. </p>
|
|
<p>The system is initialized, the idle thread is spawned and the current instruction flow becomes the main thread with priority <code>NORMALPRIO</code>. </p>
|
|
|
|
<p>Definition at line <a class="el" href="ch_8cpp_source.html#l00039">39</a> of file <a class="el" href="ch_8cpp_source.html">ch.cpp</a>.</p>
|
|
|
|
<p>References <a class="el" href="group__system.html#gafe2c7de6567e98e487e009e81e3be10b">chSysInit()</a>.</p>
|
|
|
|
<p><div class="dynheader">
|
|
Here is the call graph for this function:</div>
|
|
<div class="dynsection">
|
|
<div class="center"><img src="classchibios__rt_1_1_system_a368a84ccf6f537f7ba732829cbb29281_cgraph.png" border="0" usemap="#classchibios__rt_1_1_system_a368a84ccf6f537f7ba732829cbb29281_cgraph_map" alt=""></div>
|
|
<map name="classchibios__rt_1_1_system_a368a84ccf6f537f7ba732829cbb29281_cgraph_map" id="classchibios__rt_1_1_system_a368a84ccf6f537f7ba732829cbb29281_cgraph">
|
|
<area shape="rect" href="group__system.html#gafe2c7de6567e98e487e009e81e3be10b" title="ChibiOS/RT initialization." alt="" coords="185,149,249,173"/>
|
|
<area shape="rect" href="group__threads.html#ga048e588238dd336c6059133b3d0c3435" title="Creates a new thread into a static memory area." alt="" coords="300,5,409,29"/>
|
|
<area shape="rect" href="group__memcore.html#ga4dc59d68e345710573420dca5daa241c" title="Low level memory manager initialization." alt="" coords="324,53,385,77"/>
|
|
<area shape="rect" href="group__heaps.html#ga7e7a6625a49b6a560a47ae7575575264" title="Initializes the default heap." alt="" coords="323,101,387,125"/>
|
|
<area shape="rect" href="group__threads.html#ga4f6ae58bb3cedfc03aacde6d49e49d35" title="Initializes a thread structure." alt="" coords="319,149,391,173"/>
|
|
<area shape="rect" href="group__scheduler.html#gab258cc2856e5f6bb125907cc23358fbd" title="Scheduler initialization." alt="" coords="311,197,399,221"/>
|
|
<area shape="rect" href="group__debug.html#ga5ef5d43e7c59f0ee9c490ea4e423c008" title="Trace circular buffer subsystem initialization." alt="" coords="323,245,387,269"/>
|
|
<area shape="rect" href="group__time.html#ga3f64863d042de0de89233bfeabe39b62" title="Virtual Timers initialization." alt="" coords="331,293,379,317"/>
|
|
</map>
|
|
</div>
|
|
</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a464d3fc171938b9387872fc9cdaa78a6"></a><!-- doxytag: member="chibios_rt::System::Lock" ref="a464d3fc171938b9387872fc9cdaa78a6" args="(void)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void chibios_rt::System::Lock </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void </td>
|
|
<td class="paramname"></td>
|
|
<td> ) </td>
|
|
<td><code> [static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Kernel lock. </p>
|
|
<dl class="note"><dt><b>Note:</b></dt><dd>On some ports it is faster to invoke <a class="el" href="group__system.html#ga9f6573c0763d1e4e97c63c62edad6e42" title="Enters the kernel lock mode.">chSysLock()</a> directly because inlining. </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="ch_8cpp_source.html#l00044">44</a> of file <a class="el" href="ch_8cpp_source.html">ch.cpp</a>.</p>
|
|
|
|
<p>References <a class="el" href="group__system.html#ga9f6573c0763d1e4e97c63c62edad6e42">chSysLock</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="affaa69004bd8f952aebce80cffff673f"></a><!-- doxytag: member="chibios_rt::System::Unlock" ref="affaa69004bd8f952aebce80cffff673f" args="(void)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void chibios_rt::System::Unlock </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void </td>
|
|
<td class="paramname"></td>
|
|
<td> ) </td>
|
|
<td><code> [static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Kernel unlock. </p>
|
|
<dl class="note"><dt><b>Note:</b></dt><dd>On some ports it is faster to invoke <a class="el" href="group__system.html#ga5a257fa58a09815eb64a45e2dfbdc22e" title="Leaves the kernel lock mode.">chSysUnlock()</a> directly because inlining. </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="ch_8cpp_source.html#l00049">49</a> of file <a class="el" href="ch_8cpp_source.html">ch.cpp</a>.</p>
|
|
|
|
<p>References <a class="el" href="group__system.html#ga5a257fa58a09815eb64a45e2dfbdc22e">chSysUnlock</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a74fb442c63f2a34c0a81dbfa42319976"></a><!-- doxytag: member="chibios_rt::System::GetTime" ref="a74fb442c63f2a34c0a81dbfa42319976" args="(void)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="group___s_t_m8___c_o_r_e.html#gac46524873fe28f00864e5ebe155bb523">systime_t</a> chibios_rt::System::GetTime </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void </td>
|
|
<td class="paramname"></td>
|
|
<td> ) </td>
|
|
<td><code> [static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns the system time as system ticks. </p>
|
|
<dl class="note"><dt><b>Note:</b></dt><dd>the system tick time interval is implementation dependent. </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="ch_8cpp_source.html#l00054">54</a> of file <a class="el" href="ch_8cpp_source.html">ch.cpp</a>.</p>
|
|
|
|
<p>References <a class="el" href="group__time.html#ga137c8f67c450f34416a786d169be90e2">chTimeNow</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<hr size="1"><address style="text-align: right;"><small>
|
|
Generated on Sun Jul 11 13:13:40 2010 for ChibiOS/RT by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.6.3</small></address>
|
|
</body>
|
|
</html>
|