CMSIS-RTOS2  Version 2.0.0
Real-Time Operating System: API and RTX Reference Implementation
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Memory Pool Configuration

The CMSIS-RTOS RTX provides several parameters to configure the Memory Pool functions.

Object-specific Memory Allocation

See Object-specific Memory Pools.

  • When Object-specific Memory is used, the number of pools for all MemoryPool objects is specified by OS_MEMPOOL_NUM.
  • The total storage size reserved for all pools is configured in OS_MEMPOOL_DATA_SIZE.

Memory Pool Configuration Options

config_wizard_memPool.png
RTX_Config.c: Memory Pool Configuration
Name #define Description
Object specific Memory allocation OS_MEMPOOL_OBJ_MEM Enables object specific memory allocation. See Object-specific Memory Pools.
Number of Memory Pool objects OS_MEMPOOL_NUM Defines maximum number of objects that can be active at the same time. Applies to objects with system provided memory for control blocks. Value range is [1-1000].
Data Storage Memory size [bytes] OS_MEMPOOL_DATA_SIZE Defines the combined data storage memory size. Applies to objects with system provided memory for data storage. Default value is 0. Value range is [0-1073741824], in multiples of 8.