📄 getst2.htm
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="GENERATOR" content="Quadralay WebWorks Publisher Professional Edition 6.0.5">
<meta name="TEMPLATEBASE" content="book_html">
<meta name="LASTUPDATED" content="12/01/03 14:14:00">
<title>2.1 Building for OS20</title>
<STYLE TYPE="text/css">
<!--
span.Signal { text-transform: uppercase; font-family: Verdana }
-->
</STYLE>
</head>
<body link="#3366CC" vlink="#9999CC" text="#000000" alink="#0000CC" bgcolor="#FFFFFF"
background="images/backgrnd.gif">
<p><img src="images/stlogo.gif" width="106" height="83" align="left"
alt="logo here!"> </p>
<table width="331" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td><a href="os20toc.htm"><img src="images/navtoc.gif" width="84" height="23"
border="0" alt="TOC"> </a></td>
<td><a href="getst.htm"><img src="images/navprev.gif" width="80" height="23"
border="0" alt="PREV"> </a></td>
<td><a href="getst3.htm"><img src="images/navnext.gif" width="83" height="23"
border="0" alt="NEXT"> </a></td>
<td><a href="os20ix.htm"><img src="images/navidx.gif" width="84" height="23"
border="0" alt="INDEX"> </a></td>
</tr>
</table>
<p><br clear="all">
</p>
<hr align="left">
<blockquote>
<h2>
<a name="1204424"> </a><font color="#003366" face="Verdana, Arial, Helvetica, sans-serif">2.1 Building for OS20</font>
</h2><hr>
<p>
<a name="1207119"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">Normally using OS20 can be almost transparent. All that is necessary is to specify to the linker that the OS20 runtime system is to be used using the <font size=2 face=Courier><strong>runtime</strong></font> option. For example:</font>
</p>
<a name="1207123"> </a><font size=2 face=Courier><strong>st20cc -p STi5516MB382 -runtime os20 app.tco -o system.lku<br></strong></font>
<p>
<a name="1207124"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">This ensures that by the time the user's <font size=2 face=Courier><strong>main</strong></font> function starts executing:</font>
</p>
<ul>
<p> <font size=2 face="Verdana, Arial, Helvetica, sans-serif"><li ><a name="1204437"> </a>the OS20 scheduler has been initialized and started,</font></p>
<p> <font size=2 face="Verdana, Arial, Helvetica, sans-serif"><li ><a name="1204438"> </a>the interrupt controller has been initialized,</font></p>
<p> <font size=2 face="Verdana, Arial, Helvetica, sans-serif"><li ><a name="1204439"> </a>the system and internal partitions have been initialized,</font></p>
<p> <font size=2 face="Verdana, Arial, Helvetica, sans-serif"><li ><a name="1204440"> </a>thread safe versions of <font size=2 face=Courier><strong>malloc</strong></font> and <font size=2 face=Courier><strong>free</strong></font> have been set up,</font></p>
<p> <font size=2 face="Verdana, Arial, Helvetica, sans-serif"><li ><a name="1204441"> </a>protection has been installed to ensure that when multiple threads call debug functions, device-independent I/O functions or <font size=2 face=Courier><strong>stdio</strong></font> functions concurrently, all operations are handled correctly.</font></p>
</ul>
<p>
<a name="1204445"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif"><strong>st20cc</strong> is described in the <em>ST20 Embedded Toolset User Manual</em>, chapter
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -