Advantages of generic APIs
Using a generic RTOS API such as CMSIS-RTOS or POSIX provides several benefits to programmers and middleware vendors. A programmer can write code once and run it on multiple MCUs, changing out the RTOS as desired with few or no changes to their application code. Middleware vendors are also able to write their code to interact with a single API and then support multiple RTOSes and hardware.
As you may have noticed from the previous diagram, CMSIS-RTOS and POSIX APIs do not require exclusive access to FreeRTOS. Since these APIs are implemented as layers on top of the native FreeRTOS API, code can make use of either the more generic API or the native RTOS API at the same time. So, it is perfectly acceptable for some ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access