Sterling
Sterling
DIIDevHeads IoT Integration Server
Created by Sterling on 6/21/2024 in #middleware-and-os
What are the benefits of using 64 priority levels in ThreadX with CMSIS-RTOS?
Good day everyone, I am trying to use ThreadX with CMSIS RTOS in a project. The cmsis_os2.c file specifies a maximum priority level of 64, but I want to optimize RAM usage by limiting it to 32. What are the benefits of using 64 priority levels in ThreadX with CMSIS-RTOS? Moreover, would there be an issue implementing only 32 priorities instead? Here's the code guys:
c #define osRtxConfig_MaxPriority (configMAX_PRIORITIES) ///< define maxmium number of supported Priority levels #if ((osRtxConfig_MaxPriority < 1) || (osRtxConfig_MaxPriority > smax(ev3_te8))) #error "RTX Error: Invalid 'osRtxConfig_Max.Priority' configuration!" #endif
c #define osRtxConfig_MaxPriority (configMAX_PRIORITIES) ///< define maxmium number of supported Priority levels #if ((osRtxConfig_MaxPriority < 1) || (osRtxConfig_MaxPriority > smax(ev3_te8))) #error "RTX Error: Invalid 'osRtxConfig_Max.Priority' configuration!" #endif
@Middleware & OS
4 replies