File ns_malloc.c
FileList > neuralSPOT > neuralspot > ns-utils > src > ns_malloc.c
Go to the source code of this file
- #include "ns_malloc.h"
- #include "ns_ambiqsuite_harness.h"
Public Attributes
| Type | Name | 
|---|---|
| int | total_allocated   = 0 | 
Public Functions
| Type | Name | 
|---|---|
| void | ns_free (void * ptr) Simple vPortFree wrapper. | 
| void * | ns_malloc (size_t size) Simple pvPortMalloc wrapper. | 
| uint8_t | ns_malloc_init () Empty for now, but placeholder in case we need multi-heap support. | 
Public Attributes Documentation
variable total_allocated
int total_allocated;
Public Functions Documentation
function ns_free
Simple vPortFree wrapper.
void ns_free (
    void * ptr
) 
function ns_malloc
Simple pvPortMalloc wrapper.
void * ns_malloc (
    size_t size
) 
function ns_malloc_init
Empty for now, but placeholder in case we need multi-heap support.
uint8_t ns_malloc_init () 
The documentation for this class was generated from the following file neuralSPOT/neuralspot/ns-utils/src/ns_malloc.c