mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-07-15 08:32:42 +08:00
feat(heap): add function to get DRAM region free size
This commit is contained in:
@ -14,6 +14,12 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define _heap_caps_lock(_num) \
|
||||
{ \
|
||||
extern void vPortETSIntrLock(void); \
|
||||
@ -32,3 +38,13 @@
|
||||
esp_task_wdt_reset(); \
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get the total free size of DRAM region
|
||||
*
|
||||
* @return Amount of free bytes in DRAM region
|
||||
*/
|
||||
size_t heap_caps_get_dram_free_size(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user