diff options
| author | bernard.xiong <[email protected]> | 2009-11-15 14:47:26 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2009-11-15 14:47:26 +0000 |
| commit | 2ea68440811d431d0e0ab1910d0d1b4a2c4285d7 (patch) | |
| tree | d192a61e99b302706db68c1e93795457c317f71c /src | |
| parent | 3344963e4b343950d46217b36bdc6760f06d805f (diff) | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/mem.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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() |
