mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-17 07:33:32 +08:00
597d71cc03
* Add get_free_heap_size function; * Increase shell stack for KPU module.
12 lines
181 B
C
12 lines
181 B
C
#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;
|
|
}
|