Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Warning

Note that the dynamic memory pools DOES DO NOT guarantee the data integrity between a block free and a block get operation.

 

The dynamic memory pools can be used to allocate general-purpose memory blocks and hardware memory blocks. Hence, two different functions can be used to create a dynamic memory pool:

FunctionDescriptionUse case
Mem_DynPoolCreate()Creates a standard memory pool and allows to specify the memory alignment of each memory block.General-purpose memory block.
Mem_DynPoolCreateHW()Creates a hardware memory pool. The memory blocks will be aligned as specified and padded as per memory segment properties.Memory blocks that can be read/written via a DMA engine.

Dynamic memory pool usage example