You are viewing an older revision! See the latest version
CMSIS RTOS
The CMSIS-RTOS library provides a scheduler to run concurrently multiple threads of execution and methods for the exchange of data among these threads.
CMSIS-RTOS Library URL: http://mbed.org/projects/libraries-testing/svn/rtos
Thread¶
[Not converted]
Mutex¶
[Not converted]
Semaphore¶
[Not converted]
Signals¶
[Not converted]
Message Queue¶
Memory Pool¶
[Not converted]
Mail Queue¶
[Not converted]
Timer¶
[Not converted]
Interrupt Service Routines¶
[Not converted]
Stack Configuration¶
The stack configuration is very dependent from the underling CMSIS-RTOS implementation.
As first reference implementation we are using RTX. One of the limitation of the RTX implementation is that it requires to statically configure the maximum number of threads and the size of the memory pool for their stacks.
Our initial RTX configuration choices are likely to change in response to the mbed users feedback:
mbed NXP LPC11U24 | mbed NXP LPC1768 | |
---|---|---|
Max number of user threads + (timer) | 3 + (1) | 7 + (1) |
Default stack size in bytes | 0.5 Kb | 1 Kb |
RAM Usage
Importing the rtos library you will immediately consume 25% of the available RAM on your mbed for stack usage.
This limitation is likely to disappear in the future CMSIS-RTOS implementations adopted by mbed.