<ahref="chheap_8h.html">Go to the documentation of this file.</a><divclass="fragment"><preclass="fragment"><aname="l00001"></a>00001 <spanclass="comment">/*</span>
<aname="l00063"></a><aclass="code"href="unionheap__header.html#a591d8bde47aea2ab624cdde2cf2587ac">00063</a><spanclass="keywordtype">size_t</span><aclass="code"href="unionheap__header.html#a591d8bde47aea2ab624cdde2cf2587ac"title="Size of the memory block.">size</a>; <spanclass="comment">/**< @brief Size of the memory block. */</span>
<aname="l00070"></a><aclass="code"href="structmemory__heap.html">00070</a><spanclass="keyword">struct </span><aclass="code"href="structmemory__heap.html"title="Structure describing a memory heap.">memory_heap</a> {
<aname="l00071"></a><aclass="code"href="structmemory__heap.html#a4cad69cd924f2de313510634d2f6de1e">00071</a><aclass="code"href="group__memcore.html#ga4fb77ad6b1053341257948231799b4ad"title="Memory get function.">memgetfunc_t</a><aclass="code"href="structmemory__heap.html#a4cad69cd924f2de313510634d2f6de1e"title="Memory blocks provider for this heap.">h_provider</a>; <spanclass="comment">/**< @brief Memory blocks provider for</span>
<aname="l00072"></a>00072 <spanclass="comment"> this heap. */</span>
<aname="l00073"></a><aclass="code"href="structmemory__heap.html#a77ba7416411ebd49578c71bca15d19ae">00073</a><spanclass="keyword">union </span><aclass="code"href="unionheap__header.html"title="Memory heap block header.">heap_header</a><aclass="code"href="structmemory__heap.html#a77ba7416411ebd49578c71bca15d19ae"title="Free blocks list header.">h_free</a>; <spanclass="comment">/**< @brief Free blocks list header. */</span>
<aname="l00084"></a>00084 <spanclass="preprocessor"></span><spanclass="keywordtype">void</span><aclass="code"href="group__heaps.html#ga7e7a6625a49b6a560a47ae7575575264"title="Initializes the default heap.">heap_init</a>(<spanclass="keywordtype">void</span>);
<aname="l00085"></a>00085 <spanclass="keywordtype">void</span><aclass="code"href="group__heaps.html#ga7135c9ddbd1402a4a36ce44df948f4e4"title="Initializes a memory heap from a static memory area.">chHeapInit</a>(<aclass="code"href="structmemory__heap.html"title="Structure describing a memory heap.">MemoryHeap</a> *heapp, <spanclass="keywordtype">void</span> *buf, <spanclass="keywordtype">size_t</span><aclass="code"href="unionheap__header.html#a591d8bde47aea2ab624cdde2cf2587ac"title="Size of the memory block.">size</a>);
<aname="l00086"></a>00086 <spanclass="keywordtype">void</span> *<aclass="code"href="group__heaps.html#ga3d364eec0bef8b1986f63b3288ebbd5f"title="Allocates a block of memory from the heap by using the first-fit algorithm.">chHeapAlloc</a>(<aclass="code"href="structmemory__heap.html"title="Structure describing a memory heap.">MemoryHeap</a> *heapp, <spanclass="keywordtype">size_t</span> size);
<aname="l00087"></a>00087 <spanclass="keywordtype">void</span><aclass="code"href="group__heaps.html#ga0fc553df0138f02e0b233be91e413c79"title="Frees a previously allocated memory block.">chHeapFree</a>(<spanclass="keywordtype">void</span> *p);
<aname="l00088"></a>00088 <spanclass="keywordtype">size_t</span><aclass="code"href="group__heaps.html#ga944ffb8c5b83c26b984e6a072d871a8b"title="Reports the heap status.">chHeapStatus</a>(<aclass="code"href="structmemory__heap.html"title="Structure describing a memory heap.">MemoryHeap</a> *heapp, <spanclass="keywordtype">size_t</span> *sizep);
Generated on Sun Nov 28 2010 14:09:48 for ChibiOS/RT by <ahref="http://www.doxygen.org/index.html"><imgsrc="doxygen.png"alt="doxygen"align="middle"border="0"></a> 1.7.1</small></address>