Ver Fonte

[add]rt_tlsf.h

yangjie há 4 anos atrás
pai
commit
be7a9e1ce7
2 ficheiros alterados com 19 adições e 1 exclusões
  1. 1 1
      rt_tlsf.c
  2. 18 0
      rt_tlsf.h

+ 1 - 1
rt_tlsf.c

@@ -8,7 +8,7 @@
  */
 
 #include <rtthread.h>
-#include "tlsf.h"
+#include "rt_tlsf.h"
 
 #if defined (RT_USING_USERHEAP) && defined (PKG_USING_TLSF)
 

+ 18 - 0
rt_tlsf.h

@@ -0,0 +1,18 @@
+/*
+ * Copyright (c) 2006-2021, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date           Author       Notes
+ * 2021-06-11     Joyce        the first version
+ */
+#ifndef RT_TLSF_H_
+#define RT_TLSF_H_
+
+#include "tlsf.h"
+
+void *rt_system_heap_add(void *begin_addr, void *end_addr);
+void rt_system_heap_remove(void *heap);
+
+#endif /* RT_TLSF_H_ */