X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=inline;f=mware%2Fheap.h;h=97cef8a3f1dd615b6e46c2a4694f6ef53bc7da5e;hb=4654a69f5df97af36ee5456d20cbccdc19012dc2;hp=bbae968bbceb92731e7066f330cc7fdbb53dcd74;hpb=888d1c49ed7cea0f272f520a74be35a32032bd6e;p=bertos.git diff --git a/mware/heap.h b/mware/heap.h old mode 100755 new mode 100644 index bbae968b..97cef8a3 --- a/mware/heap.h +++ b/mware/heap.h @@ -1,9 +1,34 @@ -/*! +/** * \file * * * \brief Heap subsystem (public interface). @@ -20,6 +45,9 @@ /*#* *#* $Log$ + *#* Revision 1.7 2006/07/19 12:56:27 bernie + *#* Convert to new Doxygen style. + *#* *#* Revision 1.6 2005/11/27 23:36:19 bernie *#* Use appconfig.h instead of cfg/config.h. *#* @@ -54,20 +82,20 @@ struct _MemChunk; -//! A heap +/// A heap struct Heap { - struct _MemChunk *FreeList; //!< Head of the free list + struct _MemChunk *FreeList; ///< Head of the free list }; -//! Initialize \a heap within the buffer pointed by \a memory which is of \a size bytes +/// Initialize \a heap within the buffer pointed by \a memory which is of \a size bytes void heap_init(struct Heap* heap, void* memory, size_t size); -//! Allocate a chunk of memory of \a size bytes from the heap +/// Allocate a chunk of memory of \a size bytes from the heap void *heap_allocmem(struct Heap* heap, size_t size); -//! Free a chunk of memory of \a size bytes from the heap +/// Free a chunk of memory of \a size bytes from the heap void heap_freemem(struct Heap* heap, void *mem, size_t size);