gnuk/ChibiOS_2.0.8/docs/html/classchibios__rt_1_1_system.html
2010-11-30 13:54:43 +09:00

185 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.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li class="current"><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Data&nbsp;Fields</span></a></li>
</ul>
</div>
<div class="navpath">
<ul>
<li><b>chibios_rt</b> </li>
<li><a class="el" href="classchibios__rt_1_1_system.html">chibios_rt::System</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a> </div>
<div class="headertitle">
<h1>chibios_rt::System Class Reference</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="chibios_rt::System" -->
<p>Class encapsulating the base system functionalities.
<a href="#_details">More...</a></p>
<p><code>#include &lt;<a class="el" href="ch_8hpp_source.html">ch.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</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">&nbsp;</td><td class="mdescRight">ChibiOS/RT initialization. <a href="#a368a84ccf6f537f7ba732829cbb29281"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</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">&nbsp;</td><td class="mdescRight">Kernel lock. <a href="#a464d3fc171938b9387872fc9cdaa78a6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</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">&nbsp;</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__types.html#gae3e32a98d431a02106616da3071832dd">systime_t</a>&nbsp;</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">&nbsp;</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&nbsp;</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</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="dyncontent">
<div class="center"><img src="classchibios__rt_1_1_system_a368a84ccf6f537f7ba732829cbb29281_cgraph.png" border="0" usemap="#classchibios__rt_1_1_system_a368a84ccf6f537f7ba732829cbb29281_cgraph" alt=""/></div>
<map name="classchibios__rt_1_1_system_a368a84ccf6f537f7ba732829cbb29281_cgraph" id="classchibios__rt_1_1_system_a368a84ccf6f537f7ba732829cbb29281_cgraph">
<area shape="rect" id="node3" href="group__system.html#gafe2c7de6567e98e487e009e81e3be10b" title="ChibiOS/RT initialization." alt="" coords="184,183,251,209"/>
<area shape="rect" id="node5" href="group__threads.html#ga048e588238dd336c6059133b3d0c3435" title="Creates a new thread into a static memory area." alt="" coords="300,5,409,32"/>
<area shape="rect" id="node7" href="group__memcore.html#ga4dc59d68e345710573420dca5daa241c" title="Low level memory manager initialization." alt="" coords="324,56,385,83"/>
<area shape="rect" id="node9" href="group__heaps.html#ga7e7a6625a49b6a560a47ae7575575264" title="Initializes the default heap." alt="" coords="323,107,387,133"/>
<area shape="rect" id="node11" href="group__threads.html#ga4f6ae58bb3cedfc03aacde6d49e49d35" title="Initializes a thread structure." alt="" coords="319,157,391,184"/>
<area shape="rect" id="node13" href="group__core.html#gad8478867d6441d9d94f92819688f15c1" title="Port&#45;related initialization code." alt="" coords="325,208,384,235"/>
<area shape="rect" id="node15" href="group__scheduler.html#gab258cc2856e5f6bb125907cc23358fbd" title="Scheduler initialization." alt="" coords="311,259,399,285"/>
<area shape="rect" id="node17" href="group__debug.html#ga5ef5d43e7c59f0ee9c490ea4e423c008" title="Trace circular buffer subsystem initialization." alt="" coords="321,309,388,336"/>
<area shape="rect" id="node19" href="group__time.html#ga3f64863d042de0de89233bfeabe39b62" title="Virtual Timers initialization." alt="" coords="329,360,380,387"/>
</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&nbsp;</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</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&nbsp;</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</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__types.html#gae3e32a98d431a02106616da3071832dd">systime_t</a> chibios_rt::System::GetTime </td>
<td>(</td>
<td class="paramtype">void&nbsp;</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</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 Nov 28 2010 14:09:59 for ChibiOS/RT by&nbsp;<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.7.1</small></address>
</body>
</html>