PMSIS API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
FC_L1 Memory allocation

Memory allocation in FC TCDM memory(GAP8) or L2(GAP9). More...

Functions

void * pi_fc_l1_malloc (int size)
 Allocate in FC L1 memory. More...
 
void pi_fc_l1_free (void *chunk, int size)
 Free FC L1 memory. More...
 
void * pi_fc_l1_malloc_align (int size, int align)
 Allocate in FC L1 memory. More...
 
void pi_fc_l1_malloc_dump (void)
 Display free blocks. More...
 

Description

Function Documentation

void pi_fc_l1_free ( void *  chunk,
int  size 
)
Parameters
chunkChunk to be freed.
sizeSize in bytes of the memory to be freed.
void* pi_fc_l1_malloc ( int  size)

The allocated memory is 4-bytes aligned. The caller has to provide back the size of the allocated chunk when freeing it. This will allocate in the closest memory for the FC, which can vary depending on the chip. Check the chip-specific section for more information.

Parameters
sizeSize in bytes of the memory to be allocated.
Returns
The allocated chunk or NULL if there was not enough memory available.
void* pi_fc_l1_malloc_align ( int  size,
int  align 
)

The allocated memory is aligned on the specified number of bytes. The caller has to provide back the size of the allocated chunk when freeing it.

Parameters
sizeSize in bytes of the memory to be allocated.
alignAlignment in bytes.
Returns
The allocated chunk or NULL if there was not enough memory available.
void pi_fc_l1_malloc_dump ( void  )

This function can be used to display free blocks available from the FC allocator.