Skip to content

File ns_malloc_tests.c

FileList > neuralSPOT > neuralspot > ns-utils > tests > ns_malloc_tests.c

Go to the source code of this file

  • #include "ns_malloc.h"
  • #include "unity/unity.h"
  • #include "ns_core.h"

Public Attributes

Type Name
size_t const ucHeapSize = = configTOTAL_HEAP_SIZE

Public Functions

Type Name
uint8_t ucHeap[NS_MALLOC_HEAP_SIZE_IN_K *1024] __attribute__ ((aligned(4)))
void ns_malloc_test_allocate_zero ()
void ns_malloc_test_basic_allocation ()
void ns_malloc_test_no_overlap_in_heap_allocations ()
void ns_malloc_test_past_max_size ()
void ns_malloc_tests_post_test_hook ()
void ns_malloc_tests_pre_test_hook ()

Macros

Type Name
define configTOTAL_HEAP_SIZE NS_MALLOC_HEAP_SIZE_IN_K * 1024

Public Attributes Documentation

variable ucHeapSize

size_t const ucHeapSize;

Public Functions Documentation

function __attribute__

uint8_t ucHeap[NS_MALLOC_HEAP_SIZE_IN_K *1024] __attribute__ (
    (aligned(4))
) 

function ns_malloc_test_allocate_zero

void ns_malloc_test_allocate_zero () 

function ns_malloc_test_basic_allocation

void ns_malloc_test_basic_allocation () 

function ns_malloc_test_no_overlap_in_heap_allocations

void ns_malloc_test_no_overlap_in_heap_allocations () 

function ns_malloc_test_past_max_size

void ns_malloc_test_past_max_size () 

function ns_malloc_tests_post_test_hook

void ns_malloc_tests_post_test_hook () 

function ns_malloc_tests_pre_test_hook

void ns_malloc_tests_pre_test_hook () 

Macro Definition Documentation

define configTOTAL_HEAP_SIZE

#define configTOTAL_HEAP_SIZE NS_MALLOC_HEAP_SIZE_IN_K * 1024

The documentation for this class was generated from the following file neuralSPOT/neuralspot/ns-utils/tests/ns_malloc_tests.c