Files
luban-lite-t3e-pro/bsp/artinchip/drv_bare/umm_heap/umm_malloc.h
刘可亮 7bbc029dae v1.0.0
2023-08-30 16:21:18 +08:00

36 lines
956 B
C

/* ----------------------------------------------------------------------------
* umm_malloc.h - a memory allocator for embedded systems (microcontrollers)
*
* See copyright notice in LICENSE.TXT
* ----------------------------------------------------------------------------
*/
#ifndef UMM_MALLOC_H
#define UMM_MALLOC_H
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
/* ------------------------------------------------------------------------ */
extern void umm_init_heap(void *ptr, size_t size);
extern void umm_init(void);
extern void *umm_malloc(size_t size);
extern void *umm_calloc(size_t num, size_t size);
extern void *umm_realloc(void *ptr, size_t size);
extern void umm_free(void *ptr);
extern void *umm_malloc_align(size_t size, size_t align);
extern void umm_free_align(void *ptr);
/* ------------------------------------------------------------------------ */
#ifdef __cplusplus
}
#endif
#endif /* UMM_MALLOC_H */