Muteki
EABI code execution on Besta® RTOS devices.
Toggle main menu visibility
Loading...
Searching...
No Matches
memory.h
Go to the documentation of this file.
1
/*
2
* Copyright 2021-present dogtopus
3
* SPDX-License-Identifier: MIT
4
*/
5
20
21
#ifndef __MUTEKI_MEMORY_H__
22
#define __MUTEKI_MEMORY_H__
23
24
#include "
common.h
"
25
26
#ifdef __cplusplus
27
extern
"C"
{
28
#endif
29
35
extern
void
*
lmalloc
(
size_t
size);
36
43
extern
void
*
lcalloc
(
size_t
nmemb,
size_t
size);
44
51
extern
void
*
lrealloc
(
void
*ptr,
size_t
size);
52
58
extern
void
_lfree
(
void
*ptr);
59
66
extern
size_t
GetFreeMemory
(
void
);
67
68
#ifdef __cplusplus
69
}
// extern "C"
70
#endif
71
72
#endif
// __MUTEKI_MEMORY_H__
common.h
Common include file for all muteki-shims headers.
lcalloc
void * lcalloc(size_t nmemb, size_t size)
Allocate and clear data units on the heap.
lmalloc
void * lmalloc(size_t size)
Allocate heap memory.
GetFreeMemory
size_t GetFreeMemory(void)
Return the size of available memory.
_lfree
void _lfree(void *ptr)
Free previously allocated memory.
lrealloc
void * lrealloc(void *ptr, size_t size)
Resize or reallocate memory.
include
muteki
memory.h
Generated by
1.18.0