![]() |
CMSIS-RTOS2
Version 2.0.0
Real-Time Operating System: API and RTX Reference Implementation
|
The CMSIS-RTOS2 manages the resources of the microcontroller system and implements the concept of parallel threads that run concurrently. There are many advantages of using an CMSIS-RTOS2 compliant kernel as it provides a standardized interface.
Applications frequently require several concurrent activities. CMSIS-RTOS2 can manage multiple concurrent activities at the time when they are needed. Each activity gets a separate thread which executes a specific task and this simplifies the overall program structure. The CMSIS-RTOS2 system is scalable and additional threads can be added easily at a later time. Threads have a priority allowing faster execution of time-critical parts of an user application.
The CMSIS-RTOS2 offers services needed in many real-time applications, for example, periodical activation of timer functions, memory management, and message exchange between threads with time limits.
The CMSIS-RTOS API v2 addresses the following new requirements:
As a consequence of these requirements the CMSIS-RTOS API v2 has the following fundamental modifications:
CMSIS-RTOS API v2 provides an translation layer for the CMSIS-RTOS API v1. It is possible to intermix CMSIS-RTOS API v2 and CMSIS-RTOS API v1 within the same application. You may migrate overtime to the new API as explained in Migration from API v1 to API v2.
CMSIS-RTOS API v2 is not POSIX compliant, but has provisions to enable a C++11/C++14 interface.
The following sections provide further details about CMSIS-RTOS2 and the RTX reference implementation.
The following files relevant to CMSIS-RTOS2 are present in the ARM::CMSIS Pack directories:
File/Folder | Content |
---|---|
CMSIS/Documentation/RTOS2 | This documentation |
CMSIS/RTOS2/Include | cmsis_os2.h header file |
CMSIS/RTOS2/RTX | CMSIS-RTOS v2 reference implementation based on RTX version 5 |
CMSIS/RTOS2/Template | compatiblity layer to CMSIS-RTOS v1 |