RT-Thread implementation of ARM CMSIS-RTOS C API v2
- RT-Thread Library
- Mandatory flags (in "rtconfig.h")
RT_USING_MUTEXRT_USING_SEMAPHORERT_USING_EVENT
- Optional flags (in "rtconfig.h")
RT_USING_MEMPOOL: To enableosMemoryPoolxxxAPIsRT_USING_MESSAGEQUEUE: To useosMessageQueuexxxAPIs
- Mandatory flags (in "rtconfig.h")
The following functions do nothing.
osKernelSuspend()osKernelResume()
- In CMSIS OS APIs, bigger priority number means higher priority
- In RT-Thread, bigger priority number means lower priority
In osThreadSetPriority() and osThreadGetPriority() functions, the following formulas are used for priority conversion.
rtt_priority = osPriorityISR - cmsis_prioritycmsis_priority = osPriorityISR - rtt_priority
The default values of osPriorityISR and RT_THREAD_PRIORITY_MAX are 56 and 32. So the available priority range for osThreadSetPriority() function is from osPriorityNormal1 (25) to osPriorityISR (56).
- The
msg_prio(message priority) andtimeoutparameters ofosMessageQueuePut()function are ignored. So there is no waiting in the function. - The
*msg_prio(message priority pointer) parameter ofosMessageQueueGet()function is ignored.