Platform Package reference: Function EwAddHeapMemoryPool()

Description of the function EwAddHeapMemoryPool() available in all Platform Packages for C compatible target systems. This function is intended to be used when integrating the Embedded Wizard created GUI application with the underlying graphics subsystem, graphics hardware or other external GUI applications coexisting on the same system.

Declaration

void EwAddHeapMemoryPool( void* aAddress, long aSize )

Parameters

aAddress

The start address of the memory area to add to the memory pool.

aSize

The size of the memory area in bytes.

Discussion

The function EwAddHeapMemoryPool() adds to the heap manager a new memory area. From now the memory is used by subsequent memory allocation operations. Once added the memory area can't be removed again without deinitializing of the entire heap manager by calling the function EwDoneHeap().