PSoC64 Secure Boot Utilities Middleware Library 1.0
Functions

General Description

Functions

void * cy_p64_malloc (uint32_t size)
 Allocates the memory from the memory buffer configured statically. More...
 
void * cy_p64_calloc (uint32_t nelem, uint32_t elsize)
 Allocates the memory from the memory buffer configured statically. More...
 
void cy_p64_free (void *p)
 Frees the allocated memory. More...
 

Function Documentation

◆ cy_p64_malloc()

void* cy_p64_malloc ( uint32_t  size)

Allocates the memory from the memory buffer configured statically.

CY_P64_HEAP_DATA_SIZE defines the size of default memory buffer.

Parameters
sizeThe required size of the memory.
Returns
The void pointer to the allocated memory buffer, or NULL if there is no enough space.

◆ cy_p64_calloc()

void* cy_p64_calloc ( uint32_t  nelem,
uint32_t  elsize 
)

Allocates the memory from the memory buffer configured statically.

Parameters
nelemThe number of elements.
elsizeThe required size of the element.
Returns
The void pointer to the allocated memory buffer, or NULL if there is no enough space.

◆ cy_p64_free()

void cy_p64_free ( void *  p)

Frees the allocated memory.

When CY_P64_FREE_WIPED is defined, it also wipes(set to 0) data from memory. T

Parameters
*pThe pointer to the memory.