⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 usart__example_8c.html.svn-base

📁 avr32100.zip Embedded demo
💻 SVN-BASE
📖 第 1 页 / 共 2 页
字号:
</pre></div><p><p>Here is the call graph for this function:<p><center><img src="usart__example_8c_a5_cgraph.png" border="0" usemap="#usart__example_8c_a5_cgraph_map" alt=""></center><map name="usart__example_8c_a5_cgraph_map"><area href="usart__example_8c.html#a4" shape="rect" coords="108,7,247,33" alt=""><area href="usart__example_8c.html#a3" shape="rect" coords="153,57,201,84" alt=""><area href="usart_8c.html#a3" shape="rect" coords="119,108,236,135" alt=""><area href="usart_8c.html#a18" shape="rect" coords="311,57,415,84" alt=""><area href="usart_8c.html#a15" shape="rect" coords="479,57,599,84" alt=""><area href="usart_8c.html#a1" shape="rect" coords="319,108,407,135" alt=""><area href="usart_8c.html#a2" shape="rect" coords="295,159,431,185" alt=""></map>    </td>  </tr></table><a class="anchor" name="a4"></a><!-- doxytag: member="usart_example.c::pio_enable_module" ref="a4" args="(avr32_piomap_t piomap, unsigned int size)" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">int pio_enable_module           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="usart__example_8c.html#a2">avr32_piomap_t</a>&nbsp;</td>          <td class="mdname" nowrap> <em>piomap</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>unsigned int&nbsp;</td>          <td class="mdname" nowrap> <em>size</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p><p>Definition at line <a class="el" href="usart__example_8c-source.html#l00107">107</a> of file <a class="el" href="usart__example_8c-source.html">usart_example.c</a>.<p>References <a class="el" href="usart__example_8c-source.html#l00040">FAILURE</a>, and <a class="el" href="usart__example_8c-source.html#l00039">SUCCESS</a>.<p>Referenced by <a class="el" href="usart__example_8c-source.html#l00068">main()</a>.<div class="fragment"><pre class="fragment"><a name="l00108"></a>00108 {<a name="l00109"></a>00109   <span class="keywordtype">int</span> i;<a name="l00110"></a>00110   <span class="keyword">volatile</span> <span class="keyword">struct </span>avr32_pio_t *pio;<a name="l00111"></a>00111 <a name="l00112"></a>00112   <span class="comment">/* get the base address for the port */</span><a name="l00113"></a>00113   <span class="keywordflow">switch</span> (**piomap/32) {<a name="l00114"></a>00114 <a name="l00115"></a>00115   <span class="keywordflow">case</span> 0:<a name="l00116"></a>00116     pio = &amp;AVR32_PIOA;<a name="l00117"></a>00117     <span class="keywordflow">break</span>;<a name="l00118"></a>00118   <span class="keywordflow">case</span> 1:<a name="l00119"></a>00119     pio = &amp;AVR32_PIOB;<a name="l00120"></a>00120     <span class="keywordflow">break</span>;<a name="l00121"></a>00121   <span class="keywordflow">case</span> 2:<a name="l00122"></a>00122     pio = &amp;AVR32_PIOC;<a name="l00123"></a>00123     <span class="keywordflow">break</span>;<a name="l00124"></a>00124   <span class="keywordflow">case</span> 3:<a name="l00125"></a>00125     pio = &amp;AVR32_PIOD;<a name="l00126"></a>00126     <span class="keywordflow">break</span>;<a name="l00127"></a>00127   <span class="keywordflow">case</span> 4:<a name="l00128"></a>00128     pio = &amp;AVR32_PIOE;<a name="l00129"></a>00129     <span class="keywordflow">break</span>;<a name="l00130"></a>00130   <span class="keywordflow">default</span> :<a name="l00131"></a>00131     <span class="keywordflow">return</span> <a class="code" href="usart__example_8c.html#a1">FAILURE</a>;<a name="l00132"></a>00132 <a name="l00133"></a>00133   }<a name="l00134"></a>00134 <a name="l00135"></a>00135   <span class="keywordflow">for</span>(i=0; i&lt;size; i++){<a name="l00136"></a>00136 <a name="l00137"></a>00137     pio-&gt;pdr |= ( 1&lt;&lt;( (**piomap) % 32) );<a name="l00138"></a>00138     pio-&gt;pudr |= ( 1&lt;&lt;( (**piomap) % 32) );<a name="l00139"></a>00139 <a name="l00140"></a>00140     <span class="keywordflow">switch</span>( *(*piomap+1) ){<a name="l00141"></a>00141     <span class="keywordflow">case</span> 0:<a name="l00142"></a>00142       pio-&gt;asr |= ( 1&lt;&lt;( (**piomap) % 32) );<a name="l00143"></a>00143       <span class="keywordflow">break</span>;<a name="l00144"></a>00144     <span class="keywordflow">case</span> 1:<a name="l00145"></a>00145       pio-&gt;bsr |= ( 1&lt;&lt;( (**piomap) % 32) );<a name="l00146"></a>00146       <span class="keywordflow">break</span>;<a name="l00147"></a>00147     <span class="keywordflow">default</span>:<a name="l00148"></a>00148       <span class="keywordflow">return</span> <a class="code" href="usart__example_8c.html#a1">FAILURE</a>;<a name="l00149"></a>00149     }<a name="l00150"></a>00150 <a name="l00151"></a>00151     piomap++;<a name="l00152"></a>00152 <a name="l00153"></a>00153   }<a name="l00154"></a>00154 <a name="l00155"></a>00155   <span class="keywordflow">return</span> <a class="code" href="usart__example_8c.html#a0">SUCCESS</a>;<a name="l00156"></a>00156 }</pre></div><p>    </td>  </tr></table><a class="anchor" name="a3"></a><!-- doxytag: member="usart_example.c::print" ref="a3" args="(volatile struct avr32_usart_t *usart, char *str)" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void print           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">volatile struct avr32_usart_t *&nbsp;</td>          <td class="mdname" nowrap> <em>usart</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>char *&nbsp;</td>          <td class="mdname" nowrap> <em>str</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p><p>Definition at line <a class="el" href="usart__example_8c-source.html#l00099">99</a> of file <a class="el" href="usart__example_8c-source.html">usart_example.c</a>.<p>References <a class="el" href="usart_8c-source.html#l00517">usart_putchar()</a>.<p>Referenced by <a class="el" href="usart__example_8c-source.html#l00068">main()</a>.<div class="fragment"><pre class="fragment"><a name="l00100"></a>00100 {<a name="l00101"></a>00101         <span class="keywordflow">while</span> (*str != <span class="charliteral">'\0'</span>)<a name="l00102"></a>00102                 <a class="code" href="usart_8c.html#a18">usart_putchar</a>(usart, *str++);<a name="l00103"></a>00103 <a name="l00104"></a>00104 }</pre></div><p><p>Here is the call graph for this function:<p><center><img src="usart__example_8c_a3_cgraph.png" border="0" usemap="#usart__example_8c_a3_cgraph_map" alt=""></center><map name="usart__example_8c_a3_cgraph_map"><area href="usart_8c.html#a18" shape="rect" coords="103,7,207,33" alt=""><area href="usart_8c.html#a15" shape="rect" coords="255,7,375,33" alt=""></map>    </td>  </tr></table><hr size="1"><address style="align: right;"><small>Generated on Tue May 2 15:00:51 2006 for AVR32100 Communication with the AVR32 USART by&nbsp;<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4 </small></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -