11#ifndef __TAL_MEMORY_H__
12#define __TAL_MEMORY_H__
14#include "tuya_cloud_types.h"
23#define Malloc(req_size) tal_malloc(req_size)
25#define Calloc(req_count, req_size) tal_calloc(req_count, req_size)
27#define Free(ptr) tal_free(ptr)
INT32_T tal_system_get_free_heap_size(VOID_T)
Get system free heap size
VOID_T * tal_realloc(VOID_T *ptr, SIZE_T size)
Re-allocate the memory
VOID_T * tal_malloc(SIZE_T size)
This API is used to alloc memory of system.
VOID_T tal_free(VOID_T *ptr)
This API is used to free memory of system.
VOID_T * tal_calloc(SIZE_T nitems, SIZE_T size)
Allocate and clear the memory