mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-24 13:58:36 +08:00
add rt_memory_info function in kernel; cleanup code in dfs_posix.c; add Chinese Font(file cached) support in RTGUI;
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@166 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
@@ -487,7 +487,16 @@ void rt_free(void *rmem)
|
||||
rt_sem_release(&heap_sem);
|
||||
}
|
||||
|
||||
#ifdef RT_MEM_STATS
|
||||
#ifdef RT_MEM_STATS
|
||||
void rt_memory_info(rt_uint32_t *total,
|
||||
rt_uint32_t *used,
|
||||
rt_uint32_t *max_used)
|
||||
{
|
||||
if (total != RT_NULL) *total = mem_size_aligned;
|
||||
if (used != RT_NULL) *used = used_mem;
|
||||
if (max_used != RT_NULL) *max_used = max_mem;
|
||||
}
|
||||
|
||||
#ifdef RT_USING_FINSH
|
||||
#include <finsh.h>
|
||||
void list_mem()
|
||||
|
||||
Reference in New Issue
Block a user