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
Semaphore Configuration

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

Object-specific Memory Allocation

See Object-specific Memory Pools.

  • When Object-specific Memory is used, the pool size for all Semaphore objects is specified by OS_SEMAPHORE_NUM.

Semaphore Configuration Options

config_wizard_semaphore.png
RTX_Config.c: Semaphore Configuration
Name #define Description
Object specific Memory allocation OS_SEMAPHORE_OBJ_MEM Enables object specific memory allocation. See Object-specific Memory Pools.
Number of Semaphore objects OS_SEMAPHORE_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].