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 

@Middleware & OS
Solution
Hey man @Sterling if you can reduce the number of priority levels from 64 to 32 in ThreadX with CMSIS-RTOS to save ur RAM usage
Was this page helpful?