![]() |
CMSIS-RTOS RTX
Version 4.51
CMSIS-RTOS RTX: Real-Time Operating System for Cortex-M processor-based devices
|
Provide version/system information and start the RTOS Kernel. More...
Macros | |
#define | osFeature_MainThread 1 |
main thread 1=main can be thread, 0=not available | |
#define | osCMSIS 0x10001 |
API version (main [31:16] .sub [15:0]) | |
#define | osKernelSystemId "RTX V4.61" |
RTOS identification string. | |
Functions | |
osStatus | osKernelInitialize (void) |
Initialize the RTOS Kernel for creating objects. | |
osStatus | osKernelStart (void) |
Start the RTOS Kernel. | |
int32_t | osKernelRunning (void) |
Check if the RTOS kernel is already started. | |
The Kernel Information and Control function group allows to:
The function main is a special thread function that may be started at system initialization. In this case it has the initial priority osPriorityNormal.
Example:
#define osCMSIS 0x10001 |
Version information of the CMSIS RTOS API whereby major version is in bits [31:16] and sub version in bits [15:0]. The value 0x10000 represents version 1.00.
#define osFeature_MainThread 1 |
A CMSIS-RTOS implementation may support to start thread execution with the function 'main'. When the value osFeature_MainThread is 1 the RTOS offers to start with 'main'. The RTOS kernel is in this case already started. When the value osFeature_MainThread is 0 the RTOS requires explicit start with osKernelStart.
#define osKernelSystemId "RTX V4.61" |
Defines a string that identifies the underlying RTOS Kernel and provides version information. The length of that string is limited to 21 bytes. A valid identification string is for example, "FreeRTOS V1.00".
osStatus osKernelInitialize | ( | void | ) |
Initialize of the RTOS Kernel to allow peripheral setup and creation of other RTOS objects with the functions:
The RTOS kernel does not start thread switching until the function osKernelStart is called.
int32_t osKernelRunning | ( | void | ) |
Identifies if the RTOS kernel is started. For systems with the option to start the main function as a thread this allows to identify that the RTOS kernel is already running.
Example:
osStatus osKernelStart | ( | void | ) |
Start the RTOS Kernel and begin thread switching.
Example: