X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=mware%2Fheap.h;h=97cef8a3f1dd615b6e46c2a4694f6ef53bc7da5e;hb=3fc75747c81395f9027b6b27cd03037e2a8eec08;hp=2635dff1594f9d8e58c12d7f4e9e1e7a8788b02b;hpb=277b540c0764dd376dcf583acdc97a2b2fd3d8e6;p=bertos.git diff --git a/mware/heap.h b/mware/heap.h old mode 100755 new mode 100644 index 2635dff1..97cef8a3 --- a/mware/heap.h +++ b/mware/heap.h @@ -1,9 +1,34 @@ -/*! +/** * \file * * * \brief Heap subsystem (public interface). @@ -20,6 +45,18 @@ /*#* *#* $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. + *#* + *#* Revision 1.5 2005/11/04 16:20:02 bernie + *#* Fix reference to README.devlib in header. + *#* + *#* Revision 1.4 2005/04/11 19:10:28 bernie + *#* Include top-level headers from cfg/ subdir. + *#* *#* Revision 1.3 2004/08/25 14:12:09 rasky *#* Aggiornato il comment block dei log RCS *#* @@ -40,25 +77,25 @@ #ifndef MWARE_HEAP_H #define MWARE_HEAP_H -#include -#include +#include +#include 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);