rt-thread-official/bsp/k210/drivers/heap.c

12 lines
181 B
C
Raw Normal View History

#include <rtthread.h>
#include <stdlib.h>
size_t get_free_heap_size(void)
{
rt_uint32_t total, used, max;
rt_memory_info(&total, &used, &max);
return total - used;
}