No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

_free_stack_8h.html 12KB

hace 5 años
hace 5 años
hace 5 años
hace 5 años
hace 5 años
hace 5 años
hace 5 años
hace 5 años
hace 5 años
hace 5 años
hace 5 años
hace 5 años
hace 5 años
hace 5 años
hace 5 años
hace 5 años
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.16"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>SdFat: ArduinoSdFat/libraries/SdFat/src/FreeStack.h File Reference</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="search/searchdata.js"></script>
  14. <script type="text/javascript" src="search/search.js"></script>
  15. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  19. <div id="titlearea">
  20. <table cellspacing="0" cellpadding="0">
  21. <tbody>
  22. <tr style="height: 56px;">
  23. <td id="projectalign" style="padding-left: 0.5em;">
  24. <div id="projectname">SdFat
  25. </div>
  26. </td>
  27. </tr>
  28. </tbody>
  29. </table>
  30. </div>
  31. <!-- end header part -->
  32. <!-- Generated by Doxygen 1.8.16 -->
  33. <script type="text/javascript">
  34. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  35. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  36. /* @license-end */
  37. </script>
  38. <script type="text/javascript" src="menudata.js"></script>
  39. <script type="text/javascript" src="menu.js"></script>
  40. <script type="text/javascript">
  41. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  42. $(function() {
  43. initMenu('',true,false,'search.php','Search');
  44. $(document).ready(function() { init_search(); });
  45. });
  46. /* @license-end */</script>
  47. <div id="main-nav"></div>
  48. <!-- window showing the filter options -->
  49. <div id="MSearchSelectWindow"
  50. onmouseover="return searchBox.OnSearchSelectShow()"
  51. onmouseout="return searchBox.OnSearchSelectHide()"
  52. onkeydown="return searchBox.OnSearchSelectKey(event)">
  53. </div>
  54. <!-- iframe showing the search results (closed by default) -->
  55. <div id="MSearchResultsWindow">
  56. <iframe src="javascript:void(0)" frameborder="0"
  57. name="MSearchResults" id="MSearchResults">
  58. </iframe>
  59. </div>
  60. <div id="nav-path" class="navpath">
  61. <ul>
  62. <li class="navelem"><a class="el" href="dir_bd3b508a448b79faa7486a2af0c5c4a2.html">ArduinoSdFat</a></li><li class="navelem"><a class="el" href="dir_d7cdc5eb6907b67ec8d6facf0ac28083.html">libraries</a></li><li class="navelem"><a class="el" href="dir_30f4e013e11264f0426cd7e4f10b230b.html">SdFat</a></li><li class="navelem"><a class="el" href="dir_ffa9b8a1695a52c2b9469cb7873a40f4.html">src</a></li> </ul>
  63. </div>
  64. </div><!-- top -->
  65. <div class="header">
  66. <div class="summary">
  67. <a href="#define-members">Macros</a> &#124;
  68. <a href="#func-members">Functions</a> &#124;
  69. <a href="#var-members">Variables</a> </div>
  70. <div class="headertitle">
  71. <div class="title">FreeStack.h File Reference</div> </div>
  72. </div><!--header-->
  73. <div class="contents">
  74. <p><a class="el" href="_free_stack_8h.html#a86da1fd0aa8dcc6a981803373bc8839d">FreeStack()</a> function.
  75. <a href="#details">More...</a></p>
  76. <div class="textblock"><code>#include &lt;stdint.h&gt;</code><br />
  77. <code>#include &lt;avr/io.h&gt;</code><br />
  78. </div><div class="textblock"><div class="dynheader">
  79. Include dependency graph for FreeStack.h:</div>
  80. <div class="dyncontent">
  81. <div class="center"><img src="_free_stack_8h__incl.png" border="0" usemap="#_arduino_sd_fat_2libraries_2_sd_fat_2src_2_free_stack_8h" alt=""/></div>
  82. <map name="_arduino_sd_fat_2libraries_2_sd_fat_2src_2_free_stack_8h" id="_arduino_sd_fat_2libraries_2_sd_fat_2src_2_free_stack_8h">
  83. <area shape="rect" title="FreeStack() function." alt="" coords="5,5,164,47"/>
  84. <area shape="rect" title=" " alt="" coords="8,95,73,121"/>
  85. <area shape="rect" title=" " alt="" coords="97,95,160,121"/>
  86. </map>
  87. </div>
  88. </div><table class="memberdecls">
  89. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
  90. Macros</h2></td></tr>
  91. <tr class="memitem:acd5a8222ee7af79faab74b1df412d600"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_free_stack_8h.html#acd5a8222ee7af79faab74b1df412d600">HAS_UNUSED_STACK</a>&#160;&#160;&#160;1</td></tr>
  92. <tr class="separator:acd5a8222ee7af79faab74b1df412d600"><td class="memSeparator" colspan="2">&#160;</td></tr>
  93. </table><table class="memberdecls">
  94. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
  95. Functions</h2></td></tr>
  96. <tr class="memitem:a534f4eab46987296c6951fc35a2f9a7f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_free_stack_8h.html#a534f4eab46987296c6951fc35a2f9a7f">FillStack</a> ()</td></tr>
  97. <tr class="separator:a534f4eab46987296c6951fc35a2f9a7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  98. <tr class="memitem:a86da1fd0aa8dcc6a981803373bc8839d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_free_stack_8h.html#a86da1fd0aa8dcc6a981803373bc8839d">FreeStack</a> ()</td></tr>
  99. <tr class="separator:a86da1fd0aa8dcc6a981803373bc8839d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  100. <tr class="memitem:a0a6400cf785c9647c0bacb76b15851de"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_free_stack_8h.html#a0a6400cf785c9647c0bacb76b15851de">UnusedStack</a> ()</td></tr>
  101. <tr class="separator:a0a6400cf785c9647c0bacb76b15851de"><td class="memSeparator" colspan="2">&#160;</td></tr>
  102. </table><table class="memberdecls">
  103. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
  104. Variables</h2></td></tr>
  105. <tr class="memitem:ad193a2cc121e0d4614a1c21eb463fb56"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_free_stack_8h.html#ad193a2cc121e0d4614a1c21eb463fb56">__brkval</a></td></tr>
  106. <tr class="separator:ad193a2cc121e0d4614a1c21eb463fb56"><td class="memSeparator" colspan="2">&#160;</td></tr>
  107. <tr class="memitem:adbad17f740c2d7f2bc4833681c93c932"><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_free_stack_8h.html#adbad17f740c2d7f2bc4833681c93c932">__bss_end</a></td></tr>
  108. <tr class="separator:adbad17f740c2d7f2bc4833681c93c932"><td class="memSeparator" colspan="2">&#160;</td></tr>
  109. </table>
  110. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  111. <div class="textblock"><p><a class="el" href="_free_stack_8h.html#a86da1fd0aa8dcc6a981803373bc8839d">FreeStack()</a> function. </p>
  112. <p>Copyright (c) 2011-2019 Bill Greiman This file is part of the SdFat library for SD memory cards.</p>
  113. <p>MIT License</p>
  114. <p>Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:</p>
  115. <p>The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.</p>
  116. <p>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. </p>
  117. </div><h2 class="groupheader">Macro Definition Documentation</h2>
  118. <a id="acd5a8222ee7af79faab74b1df412d600"></a>
  119. <h2 class="memtitle"><span class="permalink"><a href="#acd5a8222ee7af79faab74b1df412d600">&#9670;&nbsp;</a></span>HAS_UNUSED_STACK</h2>
  120. <div class="memitem">
  121. <div class="memproto">
  122. <table class="memname">
  123. <tr>
  124. <td class="memname">#define HAS_UNUSED_STACK&#160;&#160;&#160;1</td>
  125. </tr>
  126. </table>
  127. </div><div class="memdoc">
  128. <p>Indicate <a class="el" href="_free_stack_8h.html#a534f4eab46987296c6951fc35a2f9a7f">FillStack()</a> and <a class="el" href="_free_stack_8h.html#a0a6400cf785c9647c0bacb76b15851de">UnusedStack()</a> are available. </p>
  129. </div>
  130. </div>
  131. <h2 class="groupheader">Function Documentation</h2>
  132. <a id="a534f4eab46987296c6951fc35a2f9a7f"></a>
  133. <h2 class="memtitle"><span class="permalink"><a href="#a534f4eab46987296c6951fc35a2f9a7f">&#9670;&nbsp;</a></span>FillStack()</h2>
  134. <div class="memitem">
  135. <div class="memproto">
  136. <table class="memname">
  137. <tr>
  138. <td class="memname">void FillStack </td>
  139. <td>(</td>
  140. <td class="paramname"></td><td>)</td>
  141. <td></td>
  142. </tr>
  143. </table>
  144. </div><div class="memdoc">
  145. <p>Fill stack with 0x55 pattern </p>
  146. </div>
  147. </div>
  148. <a id="a86da1fd0aa8dcc6a981803373bc8839d"></a>
  149. <h2 class="memtitle"><span class="permalink"><a href="#a86da1fd0aa8dcc6a981803373bc8839d">&#9670;&nbsp;</a></span>FreeStack()</h2>
  150. <div class="memitem">
  151. <div class="memproto">
  152. <table class="mlabels">
  153. <tr>
  154. <td class="mlabels-left">
  155. <table class="memname">
  156. <tr>
  157. <td class="memname">int FreeStack </td>
  158. <td>(</td>
  159. <td class="paramname"></td><td>)</td>
  160. <td></td>
  161. </tr>
  162. </table>
  163. </td>
  164. <td class="mlabels-right">
  165. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  166. </tr>
  167. </table>
  168. </div><div class="memdoc">
  169. <p>Amount of free stack space. </p><dl class="section return"><dt>Returns</dt><dd>The number of free bytes. </dd></dl>
  170. </div>
  171. </div>
  172. <a id="a0a6400cf785c9647c0bacb76b15851de"></a>
  173. <h2 class="memtitle"><span class="permalink"><a href="#a0a6400cf785c9647c0bacb76b15851de">&#9670;&nbsp;</a></span>UnusedStack()</h2>
  174. <div class="memitem">
  175. <div class="memproto">
  176. <table class="memname">
  177. <tr>
  178. <td class="memname">int UnusedStack </td>
  179. <td>(</td>
  180. <td class="paramname"></td><td>)</td>
  181. <td></td>
  182. </tr>
  183. </table>
  184. </div><div class="memdoc">
  185. <p>Determine the amount of unused stack.</p>
  186. <p><a class="el" href="_free_stack_8h.html#a534f4eab46987296c6951fc35a2f9a7f">FillStack()</a> must be called to fill the stack with a 0x55 pattern.</p>
  187. <p><a class="el" href="_free_stack_8h.html#a0a6400cf785c9647c0bacb76b15851de">UnusedStack()</a> may fail if malloc() or new is use.</p>
  188. <dl class="section return"><dt>Returns</dt><dd>number of bytes with 0x55 pattern. </dd></dl>
  189. </div>
  190. </div>
  191. <h2 class="groupheader">Variable Documentation</h2>
  192. <a id="ad193a2cc121e0d4614a1c21eb463fb56"></a>
  193. <h2 class="memtitle"><span class="permalink"><a href="#ad193a2cc121e0d4614a1c21eb463fb56">&#9670;&nbsp;</a></span>__brkval</h2>
  194. <div class="memitem">
  195. <div class="memproto">
  196. <table class="memname">
  197. <tr>
  198. <td class="memname">char* __brkval</td>
  199. </tr>
  200. </table>
  201. </div><div class="memdoc">
  202. <p>boundary between stack and heap. </p>
  203. </div>
  204. </div>
  205. <a id="adbad17f740c2d7f2bc4833681c93c932"></a>
  206. <h2 class="memtitle"><span class="permalink"><a href="#adbad17f740c2d7f2bc4833681c93c932">&#9670;&nbsp;</a></span>__bss_end</h2>
  207. <div class="memitem">
  208. <div class="memproto">
  209. <table class="memname">
  210. <tr>
  211. <td class="memname">char __bss_end</td>
  212. </tr>
  213. </table>
  214. </div><div class="memdoc">
  215. <p>End of bss section. </p>
  216. </div>
  217. </div>
  218. </div><!-- contents -->
  219. <!-- start footer part -->
  220. <hr class="footer"/><address class="footer"><small>
  221. Generated on Fri Dec 6 2019 09:45:12 for SdFat by &#160;<a href="http://www.doxygen.org/index.html">
  222. <img class="footer" src="doxygen.png" alt="doxygen"/>
  223. </a> 1.8.16
  224. </small></address>
  225. </body>
  226. </html>