F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
|
The StaticMemory component is a drop in replacement for Svc::BufferManager that allocates memory out of a static pool of memory. This allows for allocations of known sizes and usage patterns to avoid extra dynamic memory complexity at the expense of extra allocations.
Note: the static memory component operates under the following caveats.
See: Svc::BufferManager for usage examples.
StaticMemory number of allocations and ports are configured using AcConstants.fpp
as shown below. This sets the number of allocate and deallocate port indices as well as the memory segments.
The size of each memory segment is set in StaticMemoryConfig.hpp
as shown below.
This means the total memory used is StaticMemoryAllocations
* STATIC_MEMORY_ALLOCATION_SIZE
bytes.
Name | Description | Validation |
---|---|---|
STAMEM-001 | The static memory shall allocate a fixed block per port index | unit test |
STAMEM-002 | The static memory shall define allocate and deallocate ports shadowing Svc::BufferManager | unit test |
Date | Description |
---|---|
2020-12-21 | Initial Draft |