]> begriffs open source - cmsis/blob - v6.1.0/RTOS2/index.html
Update documentation for branch main
[cmsis] / v6.1.0 / RTOS2 / index.html
1 <!-- HTML header for doxygen 1.9.6-->
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
4 <head>
5 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
6 <meta http-equiv="X-UA-Compatible" content="IE=11"/>
7 <meta name="viewport" content="width=device-width, initial-scale=1"/>
8 <title>CMSIS-RTOS2: Overview</title>
9 <link href="doxygen.css" rel="stylesheet" type="text/css" />
10 <script type="text/javascript" src="jquery.js"></script>
11 <script type="text/javascript" src="dynsections.js"></script>
12 <script type="text/javascript" src="tabs.js"></script>
13 <script type="text/javascript" src="footer.js"></script>
14 <script type="text/javascript" src="navtree.js"></script>
15 <link href="navtree.css" rel="stylesheet" type="text/css"/>
16 <script type="text/javascript" src="resize.js"></script>
17 <script type="text/javascript" src="navtreedata.js"></script>
18 <script type="text/javascript" src="navtree.js"></script>
19 <link href="search/search.css" rel="stylesheet" type="text/css"/>
20 <script type="text/javascript" src="search/searchdata.js"></script>
21 <script type="text/javascript" src="search/search.js"></script>
22 <script type="text/javascript">
23 /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
24   $(document).ready(function() { init_search(); });
25 /* @license-end */
26 </script>
27 <script type="text/javascript" src="darkmode_toggle.js"></script>
28 <link href="extra_stylesheet.css" rel="stylesheet" type="text/css"/>
29 <link href="extra_navtree.css" rel="stylesheet" type="text/css"/>
30 <link href="extra_search.css" rel="stylesheet" type="text/css"/>
31 <link href="extra_tabs.css" rel="stylesheet" type="text/css"/>
32 <link href="version.css" rel="stylesheet" type="text/css"/>
33 <script type="text/javascript" src="../../version.js"></script>
34 </head>
35 <body>
36 <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
37 <div id="titlearea">
38 <table cellspacing="0" cellpadding="0">
39  <tbody>
40  <tr style="height: 55px;">
41   <td id="projectlogo" style="padding: 1.5em;"><img alt="Logo" src="cmsis_logo_white_small.png"/></td>
42   <td style="padding-left: 1em; padding-bottom: 1em;padding-top: 1em;">
43    <div id="projectname">CMSIS-RTOS2
44    &#160;<span id="projectnumber"><script type="text/javascript">
45      <!--
46      writeHeader.call(this);
47      writeVersionDropdown.call(this, "CMSIS-RTOS2");
48      //-->
49     </script>
50    </span>
51    </div>
52    <div id="projectbrief">Real-Time Operating System API</div>
53   </td>
54    <td>        <div id="MSearchBox" class="MSearchBoxInactive">
55         <span class="left">
56           <span id="MSearchSelect"                onmouseover="return searchBox.OnSearchSelectShow()"                onmouseout="return searchBox.OnSearchSelectHide()">&#160;</span>
57           <input type="text" id="MSearchField" value="" placeholder="Search" accesskey="S"
58                onfocus="searchBox.OnSearchFieldFocus(true)" 
59                onblur="searchBox.OnSearchFieldFocus(false)" 
60                onkeyup="searchBox.OnSearchFieldChange(event)"/>
61           </span><span class="right">
62             <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
63           </span>
64         </div>
65 </td>
66   <!--END !PROJECT_NAME-->
67  </tr>
68  </tbody>
69 </table>
70 </div>
71 <!-- end header part -->
72 <div id="CMSISnav" class="tabs1">
73   <ul class="tablist">
74     <script type="text/javascript">
75       writeComponentTabs.call(this);
76     </script>
77   </ul>
78 </div>
79 <script type="text/javascript">
80   writeSubComponentTabs.call(this);
81 </script>
82 <!-- Generated by Doxygen 1.9.6 -->
83 <script type="text/javascript">
84 /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
85 var searchBox = new SearchBox("searchBox", "search/",'.html');
86 /* @license-end */
87 </script>
88 </div><!-- top -->
89 <div id="side-nav" class="ui-resizable side-nav-resizable">
90   <div id="nav-tree">
91     <div id="nav-tree-contents">
92       <div id="nav-sync" class="sync"></div>
93     </div>
94   </div>
95   <div id="splitbar" style="-moz-user-select:none;" 
96        class="ui-resizable-handle">
97   </div>
98 </div>
99 <script type="text/javascript">
100 /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
101 $(document).ready(function(){initNavTree('index.html',''); initResizable(); });
102 /* @license-end */
103 </script>
104 <div id="doc-content">
105 <!-- window showing the filter options -->
106 <div id="MSearchSelectWindow"
107      onmouseover="return searchBox.OnSearchSelectShow()"
108      onmouseout="return searchBox.OnSearchSelectHide()"
109      onkeydown="return searchBox.OnSearchSelectKey(event)">
110 </div>
111
112 <!-- iframe showing the search results (closed by default) -->
113 <div id="MSearchResultsWindow">
114 <div id="MSearchResults">
115 <div class="SRPage">
116 <div id="SRIndex">
117 <div id="SRResults"></div>
118 <div class="SRStatus" id="Loading">Loading...</div>
119 <div class="SRStatus" id="Searching">Searching...</div>
120 <div class="SRStatus" id="NoMatches">No Matches</div>
121 </div>
122 </div>
123 </div>
124 </div>
125
126 <div><div class="header">
127   <div class="headertitle"><div class="title">Overview </div></div>
128 </div><!--header-->
129 <div class="contents">
130 <div class="textblock"><p><a class="anchor" id="mainpage"></a> Modern embedded applications often need to concurrently execute multiple activities such as sensor readings, connectivity, machine-learning algorithms, graphics display and others. A real-time operating system (RTOS) equips users with necessary mechanisms that simplify implementation of complex programs and ensure their reliable operation with deterministic timing.</p>
131 <p><b>CMSIS-RTOS2</b> specifies a generic RTOS interface over real-time OS kernels running on Arm&reg; Cortex&reg; processor-based devices. Applications and middleware components can <a class="el" href="usingOS2.html">use CMSIS_RTOS2 API</a> for better code reuse and simpler integration in various software ecosystems.</p>
132 <p>CMSIS-RTOS2 also specifies a standard <a class="el" href="group__CMSIS__RTOS__TickAPI.html">OS Tick interface</a> for use by RTOS kernels. It provides several OS tick implementations for simple kernel porting to different Cortex-M and Cortex-A processors.</p>
133 <div class="image">
134 <img src="cmsis_rtos2_overview.png" alt=""/>
135 <div class="caption">
136 CMSIS-RTOS2 interface</div></div>
137     <h1><a class="anchor" id="rtos2_benefits"></a>
138 Benefits</h1>
139 <p>CMSIS-RTOS2 provides great benefits to the embedded developers and software vendors:</p>
140 <ul>
141 <li>The CMSIS-RTOS2 API covers all common services expected from a modern RTOS kernel for efficient thread management, inter-thread communication, timing control and others. See <a class="el" href="usingOS2.html#rtos2_functionalities">Functionality overview</a> for details.</li>
142 <li>The unified API increases developers' productivity and reduces learning efforts. It makes the software components reusable across different software stacks.</li>
143 <li>The API enables use of advanced CPU features by RTOS and application, such as secure/non-secure execution with TrustZone, multi-core operation, access protection with MPU, and others.</li>
144 <li>The C interface is binary compliant with the <a href="https://github.com/ARM-software/abi-aa/">Application Binary Interface (ABI) for Arm architecture</a> and enables inter-operation between various toolchains.</li>
145 <li><a class="el" href="rtosValidation.html">RTOS Validation Suite</a> provides a set of tests to verify compatibility to CMSIS-RTOS2 API definitions.</li>
146 <li>CMSIS-RTOS2 is well adopted by the industry, has many years of continuous improvements and commitment for future developments.</li>
147 </ul>
148 <blockquote class="doxtable">
149 <p>&zwj;<b>Note</b></p><ul>
150 <li>The CMSIS-RTOS2 defines a minimum feature set. It's architecture allows to use advanced vendor-specific features directly as well. </li>
151 </ul>
152 </blockquote>
153 <h1><a class="anchor" id="rtos2_kernels"></a>
154 Supported RTOS kernels</h1>
155 <p>Many popular RTOS kernels include support for CMSIS-RTOS2 API:</p>
156 <p><b>CMSIS-RTX</b> (or Keil RTX5): provides most complete support for CMSIS-RTOS2 API and uses it as native interface. For more information see:</p>
157 <ul>
158 <li><a href="https://github.com/ARM-software/CMSIS-RTX">CMSIS-RTX GitHub repository</a></li>
159 <li><a href="https://arm-software.github.io/CMSIS-RTX/">CMSIS-RTX documentation</a></li>
160 <li><a href="https://www.keil.arm.com/packs/cmsis-rtx-arm/versions/">CMSIS-RTX pack</a></li>
161 </ul>
162 <p><b>FreeRTOS</b> : this popular RTOS kernel is enabled with CMSIS-RTOS2 API in the <em>CMSIS-FreeRTOS</em> variant. To learn more see:</p>
163 <ul>
164 <li><a href="https://github.com/ARM-software/CMSIS-FreeRTOS">CMSIS-FreeRTOS GitHub repository</a></li>
165 <li><a href="https://arm-software.github.io/CMSIS-FreeRTOS/">CMSIS-FreeRTOS documentation</a></li>
166 <li><a href="https://www.keil.arm.com/packs/cmsis-freertos-arm/versions/">CMSIS-FreeRTOS pack</a></li>
167 </ul>
168 <p><b>Zephyr RTOS</b>: is developed under governance of Linux Foundation and includes CMSIS-RTOS2 API support. See more at:</p>
169 <ul>
170 <li><a href="https://github.com/zephyrproject-rtos/zephyr">Zephyr GitHub repository</a>, see folder <em>subsys/portability/cmsis_rtos_v2/</em></li>
171 <li><a href="https://docs.zephyrproject.org/latest/services/portability/cmsis_rtos_v2.html">Zephyr documentation about CMSIS-RTOS2 support</a></li>
172 </ul>
173 <p><b>embOS</b>: is a preemptive RTOS designed by Segger, and provides support for CMSIS-RTOS2 API.</p>
174 <ul>
175 <li><a href="https://wiki.segger.com/Using_embOS_in_CMSIS-Pack_projects">Using embOS in CMSIS-Pack projects</a></li>
176 <li><a href="https://www.keil.arm.com/packs/cmsis-embos-segger/versions/">CMSIS-embOS pack</a></li>
177 </ul>
178 <p><b>Azure ThreadX RTOS for STM32</b>: is an integration of Azure RTOS into STM32 middleware provided by STMicroelectronics.</p>
179 <ul>
180 <li><a href="https://wiki.st.com/stm32mcu/wiki/Introduction_to_THREADX#CMSIS-RTOS_API_Support">CMSIS-RTOS API support in ThreadX for STM32</a></li>
181 </ul>
182 <p><b>Micrium OS</b> is developed and maintained by Silicon Labs.</p>
183 <ul>
184 <li><a href="https://www.silabs.com/developers/rtos">Micrium OS overview and comparison</a></li>
185 </ul>
186 <h1><a class="anchor" id="rtos2_access"></a>
187 Access to CMSIS-RTOS2</h1>
188 <p>CMSIS-RTOS2 and OS Tick intefaces are actively maintained in the <a href="https://github.com/ARM-software/CMSIS_6"><b>CMSIS 6 GitHub repository</b></a> and provided as part of the <a href="../General/cmsis_pack.html"><b>CMSIS Software Pack</b></a>.</p>
189 <p>The following files and directories relevant to CMSIS-RTOS2 are present in the <b>ARM::CMSIS</b> Pack:</p>
190 <table class="markdownTable">
191 <tr class="markdownTableHead">
192 <th class="markdownTableHeadLeft">File/Directory   </th><th class="markdownTableHeadLeft">Content    </th></tr>
193 <tr class="markdownTableRowOdd">
194 <td class="markdownTableBodyLeft">📂 CMSIS   </td><td class="markdownTableBodyLeft">CMSIS Base software components folder    </td></tr>
195 <tr class="markdownTableRowEven">
196 <td class="markdownTableBodyLeft">┣ ðŸ“‚ Documentation/html/RTOS2   </td><td class="markdownTableBodyLeft">A local copy of this CMSIS-RTOS2 documentation    </td></tr>
197 <tr class="markdownTableRowOdd">
198 <td class="markdownTableBodyLeft">â”— ðŸ“‚ RTOS2   </td><td class="markdownTableBodyLeft">CMSIS-RTOS2 API header files and OS tick implementations    </td></tr>
199 <tr class="markdownTableRowEven">
200 <td class="markdownTableBodyLeft">&emsp;&#160; â”£ ðŸ“‚ Include   </td><td class="markdownTableBodyLeft">API header files    </td></tr>
201 <tr class="markdownTableRowOdd">
202 <td class="markdownTableBodyLeft">&emsp;&emsp;&#160; â”£ ðŸ“„ cmsis_os2.h   </td><td class="markdownTableBodyLeft"><a class="el" href="usingOS2.html#cmsis_os2_h">cmsis_os2.h API header file</a>    </td></tr>
203 <tr class="markdownTableRowEven">
204 <td class="markdownTableBodyLeft">&emsp;&emsp;&#160; â”— ðŸ“„ os_tick.h   </td><td class="markdownTableBodyLeft"><a class="el" href="group__CMSIS__RTOS__TickAPI.html">OS Tick API</a> header file    </td></tr>
205 <tr class="markdownTableRowOdd">
206 <td class="markdownTableBodyLeft">&emsp;&#160; â”— ðŸ“‚ Source   </td><td class="markdownTableBodyLeft">OS tick implementations    </td></tr>
207 <tr class="markdownTableRowEven">
208 <td class="markdownTableBodyLeft">&emsp;&emsp;&#160; â”£ ðŸ“„ os_systick.c   </td><td class="markdownTableBodyLeft">OS tick implementation using Cortex-M SysTick timer    </td></tr>
209 <tr class="markdownTableRowOdd">
210 <td class="markdownTableBodyLeft">&emsp;&emsp;&#160; â”£ ðŸ“„ os_tick_gtim.c   </td><td class="markdownTableBodyLeft">OS tick implementation using Cortex-A Generic Timer    </td></tr>
211 <tr class="markdownTableRowEven">
212 <td class="markdownTableBodyLeft">&emsp;&emsp;&#160; â”— ðŸ“„ os_tick_ptim.c   </td><td class="markdownTableBodyLeft">OS tick implementation using Cortex-A Private Timer   </td></tr>
213 </table>
214 </div></div><!-- PageDoc -->
215 </div><!-- contents -->
216 </div><!-- doc-content -->
217 <!-- start footer part -->
218 <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
219   <ul>
220     <li class="footer">
221       <script type="text/javascript">
222         <!--
223         writeFooter.call(this);
224         //-->
225       </script> 
226     </li>
227   </ul>
228 </div>
229 </body>
230 </html>