Hello everyone, from KEIL 5.10, I see a lot of new things and very excite to use CMSIS-RTOS on my STM32F4 board, compare to RTX, CMSIS-RTOS with RTX implementation really bring flexible development. After several days development, I have following questions: 1. The priority range is too little. Only 7 priority for programming, osPriorityIdle to osPriorityRealtime, for small device it is OK, for some complex device, this is so limited to arrange big application within these 7 priority.
2. All the task, semaphore, mutex, timer should be declared static, for embedded device which use C language, it is OK, but consider we may use C++ for dynamic handling, it is not so flexible. Take following piece of code as an example:
class A {
public: A(); ~A(); private: osMutexDef(mutex); osMutexId m_mutex; };
For such code, the compiler will report and error in KEIL MDK5.10.
For task, I can avoid such definition as it support multi instance, but for Semaphore and Mutex, how it works in C++ code if I want to create dynamicly.