summaryrefslogtreecommitdiff
path: root/include/rtthread.h
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-04-14 03:52:56 +0000
committer[email protected] <[email protected]>2012-04-14 03:52:56 +0000
commit87195cf84ebc323b813899b19ff95b60ef8bc589 (patch)
treef009b0e6036ad38b7f4ba24d9e2685159321f3be /include/rtthread.h
parent8061067343e2eda986616bb68aa52fe7fded5456 (diff)
Added memory heap object implementation; Added RT_LIST_OBJECT_INIT macro.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2046 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'include/rtthread.h')
-rw-r--r--include/rtthread.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/rtthread.h b/include/rtthread.h
index 4fde569cf2..fd697b8ed9 100644
--- a/include/rtthread.h
+++ b/include/rtthread.h
@@ -207,6 +207,18 @@ void rt_free_sethook(void (*hook)(void *ptr));
#endif
+#ifdef RT_USING_MEMHEAP
+/**
+ * memory heap object interface
+ */
+rt_err_t rt_memheap_init(struct rt_memheap* memheap, const char* name,
+ void *start_addr, rt_uint32_t size);
+rt_err_t rt_memheap_detach(struct rt_memheap* heap);
+void* rt_memheap_alloc(struct rt_memheap *heap, rt_uint32_t size);
+void rt_memheap_free(void* ptr);
+
+#endif
+
/*@}*/
/**