index.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <title>CMSIS: Introduction</title>
  7. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  8. <link href="cmsis.css" rel="stylesheet" type="text/css" />
  9. <script type="text/javascript" src="jquery.js"></script>
  10. <script type="text/javascript" src="dynsections.js"></script>
  11. <link href="navtree.css" rel="stylesheet" type="text/css"/>
  12. <script type="text/javascript" src="resize.js"></script>
  13. <script type="text/javascript" src="navtree.js"></script>
  14. <script type="text/javascript">
  15. $(document).ready(initResizable);
  16. </script>
  17. <link href="stylsheetf" rel="stylesheet" type="text/css" />
  18. </head>
  19. <body>
  20. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  21. <div id="titlearea">
  22. <table cellspacing="0" cellpadding="0">
  23. <tbody>
  24. <tr style="height: 46px;">
  25. <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td>
  26. <td style="padding-left: 0.5em;">
  27. <div id="projectname">CMSIS
  28. &#160;<span id="projectnumber">Version 4.2</span>
  29. </div>
  30. <div id="projectbrief">Cortex Microcontroller Software Interface Standard</div>
  31. </td>
  32. </tr>
  33. </tbody>
  34. </table>
  35. </div>
  36. <!-- end header part -->
  37. <div id="CMSISnav" class="tabs1">
  38. <ul class="tablist">
  39. <li class="current"><a href="../../General/html/index.html"><span>CMSIS</span></a></li>
  40. <li><a href="../../Core/html/index.html"><span>CORE</span></a></li>
  41. <li><a href="../../Driver/html/index.html"><span>Driver</span></a></li>
  42. <li><a href="../../DSP/html/index.html"><span>DSP</span></a></li>
  43. <li><a href="../../RTOS/html/index.html"><span>RTOS API</span></a></li>
  44. <li><a href="../../Pack/html/index.html"><span>Pack</span></a></li>
  45. <li><a href="../../SVD/html/index.html"><span>SVD</span></a></li>
  46. </ul>
  47. </div>
  48. <!-- Generated by Doxygen 1.8.2 -->
  49. <div id="navrow1" class="tabs">
  50. <ul class="tablist">
  51. <li class="current"><a href="index.html"><span>Main&#160;Page</span></a></li>
  52. </ul>
  53. </div>
  54. </div><!-- top -->
  55. <div id="side-nav" class="ui-resizable side-nav-resizable">
  56. <div id="nav-tree">
  57. <div id="nav-tree-contents">
  58. <div id="nav-sync" class="sync"></div>
  59. </div>
  60. </div>
  61. <div id="splitbar" style="-moz-user-select:none;"
  62. class="ui-resizable-handle">
  63. </div>
  64. </div>
  65. <script type="text/javascript">
  66. $(document).ready(function(){initNavTree('index.html','');});
  67. </script>
  68. <div id="doc-content">
  69. <div class="header">
  70. <div class="headertitle">
  71. <div class="title">Introduction </div> </div>
  72. </div><!--header-->
  73. <div class="contents">
  74. <div class="textblock"><p>The <b>Cortex Microcontroller Software Interface Standard</b> (CMSIS) is a vendor-independent hardware abstraction layer for the Cortex-M processor series and defines generic tool interfaces. The CMSIS enables consistent device support and simple software interfaces to the processor and the peripherals, simplifying software re-use, reducing the learning curve for microcontroller developers, and reducing the time to market for new devices.</p>
  75. <p>The CMSIS is defined in close cooperation with various silicon and software vendors and provides a common approach to interface to peripherals, real-time operating systems, and middleware components. The CMSIS is intended to enable the combination of software components from multiple middleware vendors.</p>
  76. <p><a class="anchor" id="CM_Components"></a>The CMSIS components are:</p>
  77. <ul>
  78. <li><a href="../../Core/html/index.html"><b>CMSIS-CORE</b></a>: API for the Cortex-M processor core and peripherals. It provides at standardized interface for Cortex-M0, Cortex-M3, Cortex-M4, SC000, and SC300. Included are also SIMD intrinsic functions for Cortex-M4 SIMD instructions.</li>
  79. </ul>
  80. <ul>
  81. <li><a href="../../Driver/html/index.html"><b>CMSIS-Driver</b></a>: defines generic peripheral driver interfaces for middleware making it reusable across supported devices. The API is RTOS independent and connects microcontroller peripherals with middleware that implements for example communication stacks, file systems, or graphic user interfaces.</li>
  82. </ul>
  83. <ul>
  84. <li><a href="../../DSP/html/index.html"><b>CMSIS-DSP</b></a>: DSP Library Collection with over 60 Functions for various data types: fix-point (fractional q7, q15, q31) and single precision floating-point (32-bit). The library is available for Cortex-M0, Cortex-M3, and Cortex-M4. The Cortex-M4 implementation is optimized for the SIMD instruction set.</li>
  85. </ul>
  86. <ul>
  87. <li><a href="../../RTOS/html/index.html"><b>CMSIS-RTOS API</b></a>: Common API for Real-Time operating systems. It provides a standardized programming interface that is portable to many RTOS and enables therefore software templates, middleware, libraries, and other components that can work across supported the RTOS systems.</li>
  88. </ul>
  89. <ul>
  90. <li><a href="../../Pack/html/index.html"><b>CMSIS-Pack</b></a>: describes with a XML based package description (PDSC) file the user and device relevant parts of a file collection (called software pack) that includes source, header, and library files, documentation, Flash programming algorithms, source code templates, and example projects. Development tools and web infrastructures use the PDSC file to extract device parameters, software components, and evaluation board configurations.</li>
  91. </ul>
  92. <ul>
  93. <li><a href="../../SVD/html/index.html"><b>CMSIS-SVD</b></a>: System View Description for Peripherals. Describes the peripherals of a device in an XML file and can be used to create peripheral awareness in debuggers or header files with peripheral register and interrupt definitions.</li>
  94. </ul>
  95. <ul>
  96. <li><a href="http://www.arm.com/cmsis" target="_blank"><b>CMSIS-DAP</b></a>: Debug Access Port. Standardized firmware for a Debug Unit that connects to the CoreSight Debug Access Port. CMSIS-DAP is distributed as separate package and well suited for integration on evaluation boards. This component is provided as separate download.</li>
  97. </ul>
  98. <dl class="section note"><dt>Note</dt><dd>Refer to <a class="el" href="index.html#CM_Pack_Content">ARM::CMSIS Pack</a> for more information on the content of the Software Pack.</dd></dl>
  99. <div class="image">
  100. <img src="CMSISv4_small.png" alt="CMSISv4_small.png"/>
  101. <div class="caption">
  102. CMSIS Structure</div></div>
  103. <h1><a class="anchor" id="Motivation"></a>
  104. Motivation</h1>
  105. <p>CMSIS has been created to help the industry in standardization. It enables consistent software layers and device support across a wide range of development tools and microcontrollers. CMSIS is not a huge software layer that introduces overhead and does not define standard peripherals. The silicon industry can therefore support the wide variations of Cortex-M processor-based devices with this common standard.</p>
  106. <p>In detail the benefits of the CMSIS are:</p>
  107. <ul>
  108. <li>Overall CMSIS reduces the learning curve, development costs, and time-to-market. Developers can write software quicker through a variety of easy-to-use, standardized software interfaces.</li>
  109. <li>Consistent software interfaces improve the software portability and re-usability. Generic software libraries and interfaces provide consistent software framework.</li>
  110. <li>Provides interfaces for debug connectivity, debug peripheral views, software delivery, and device support to reduce time-to-market for new microcontroller deployment.</li>
  111. <li>Provides a compiler independent layer that allows using different compilers. CMSIS is supported by all mainstream compilers (ARMCC, IAR, and GNU).</li>
  112. <li>Enhances program debugging with peripheral information for debuggers and ITM channels for printf-style output and RTOS kernel awareness.</li>
  113. <li>CMSIS is delivered in CMSIS-Pack format which enables fast software delivery, simplifies updates, and enables consistent integration into development tools.</li>
  114. </ul>
  115. <h1><a class="anchor" id="CodingRules"></a>
  116. Coding Rules</h1>
  117. <p>The CMSIS uses the following essential coding rules and conventions:</p>
  118. <ul>
  119. <li>Compliant with ANSI C and C++.</li>
  120. <li>Uses ANSI C standard data types defined in <b>&lt;stdint.h&gt;</b>.</li>
  121. <li>Variables and parameters have a complete data type.</li>
  122. <li>Expressions for <em>#define</em> constants are enclosed in parenthesis.</li>
  123. <li>Conforms to MISRA 2004. MISRA rule violations are documented.</li>
  124. </ul>
  125. <p>In addition, the CMSIS recommends the following conventions for identifiers:</p>
  126. <ul>
  127. <li><b>CAPITAL</b> names to identify Core Registers, Peripheral Registers, and CPU Instructions.</li>
  128. <li><b>CamelCase</b> names to identify function names and interrupt functions.</li>
  129. <li><b>Namespace_</b> prefixes avoid clashes with user identifiers and provide functional groups (i.e. for peripherals, RTOS, or DSP Library).</li>
  130. </ul>
  131. <p>The CMSIS is documented within the source files with: </p>
  132. <ul>
  133. <li>Comments that use the C or C++ style. </li>
  134. <li>Doxygen compliant <b>function comments</b> that provide:<ul>
  135. <li>brief function overview.</li>
  136. <li>detailed description of the function.</li>
  137. <li>detailed parameter explanation.</li>
  138. <li>detailed information about return values.</li>
  139. </ul>
  140. </li>
  141. </ul>
  142. <p>Doxygen comment example: </p>
  143. <pre class="fragment">/**
  144. * @brief Enable Interrupt in NVIC Interrupt Controller
  145. * @param IRQn interrupt number that specifies the interrupt
  146. * @return none.
  147. * Enable the specified interrupt in the NVIC Interrupt Controller.
  148. * Other settings of the interrupt such as priority are not affected.
  149. */
  150. </pre><h1><a class="anchor" id="License"></a>
  151. Licence</h1>
  152. <p>The CMSIS is provided free of charge by ARM and can be used for all Cortex-M based devices.</p>
  153. <p>The software portions that are deployed in the application program are under a BSD license which allows usage of CMSIS in any commercial or open source projects.</p>
  154. <p>View the <a href="CMSIS_END_USER_LICENCE_AGREEMENT.pdf">LICENCE AGREEMENT for CMSIS</a> in detail.</p>
  155. <h1><a class="anchor" id="CM_Pack_Content"></a>
  156. ARM::CMSIS Pack</h1>
  157. <p>The <b>ARM::CMSIS</b> Pack contains the following: </p>
  158. <table class="doxtable">
  159. <tr>
  160. <th>File/Folder </th><th>Content </th></tr>
  161. <tr>
  162. <td><b>ARM.CMSIS.pdsc</b> </td><td>Package description file </td></tr>
  163. <tr>
  164. <td><b>CMSIS</b> </td><td><a class="el" href="index.html#CM_Components">CMSIS components</a> (see below) </td></tr>
  165. <tr>
  166. <td><b>CMSIS_RTX</b> </td><td><a href="http://www.keil.com/pack/doc/cmsis_rtx/index.html" class="el" target="_blank">Keil RTX</a> implementation of <a href="../../RTOS/html/index.html"><b>CMSIS-RTOS</b></a> </td></tr>
  167. <tr>
  168. <td><b>Device</b> </td><td>ARM reference implementations of Cortex-M devices </td></tr>
  169. </table>
  170. <h2>CMSIS Directory</h2>
  171. <p>The directory <b>CMSIS</b> contains the "CMSIS End User License Agreement" as PDF and RTF, a README text file, the index.html file for this documentation, and the following sub-directories:</p>
  172. <table class="doxtable">
  173. <tr>
  174. <th>Directory </th><th>Content </th></tr>
  175. <tr>
  176. <td><b>Documentation</b> </td><td>This documentation </td></tr>
  177. <tr>
  178. <td><b>Driver</b> </td><td>Header files for the <a href="../../Driver/html/index.html"><b>CMSIS-Driver</b></a> peripheral interface API </td></tr>
  179. <tr>
  180. <td><b>DSP_Lib</b> </td><td><a href="../../DSP/html/index.html"><b>CMSIS-DSP</b></a> software library files </td></tr>
  181. <tr>
  182. <td><b>Include</b> </td><td>Include files for <a href="../../Core/html/index.html"><b>CMSIS-CORE</b></a> and <a href="../../DSP/html/index.html"><b>CMSIS-DSP</b></a> </td></tr>
  183. <tr>
  184. <td><b>Lib</b> </td><td><a href="../../DSP/html/index.html"><b>CMSIS-DSP</b></a> libraries for ARMCC and GCC </td></tr>
  185. <tr>
  186. <td><b>Pack</b> </td><td><a href="../../Pack/html/_pack__example.html"><b>CMSIS-Pack</b></a> example </td></tr>
  187. <tr>
  188. <td><b>RTOS</b> </td><td><a href="../../RTOS/html/index.html"><b>CMSIS-RTOS</b></a> API header file </td></tr>
  189. <tr>
  190. <td><b>SVD</b> </td><td><a href="../../SVD/html/index.html"><b>CMSIS-SVD</b></a> example </td></tr>
  191. <tr>
  192. <td><b>UserCodeTemplates\ARM</b> </td><td>ITM_Retarget.c, CMSIS <a href="../../Core/html/group___i_t_m___debug__gr.html"><b>retarget output</b></a> to ITM Channel 0 template file </td></tr>
  193. <tr>
  194. <td><b>Utilities</b> </td><td>PACK.xsd (<a href="../../Pack/html/_pack__example.html"><b>CMSIS-Pack</b></a> schema file), PackChk.exe (checking tool for software packs), <br/>
  195. CMSIS-SVD.xsd (<a href="../../SVD/html/index.html"><b>CMSIS-SVD</b></a> schema file), SVDConv.exe (conversion tool for SVD files) </td></tr>
  196. </table>
  197. <hr/>
  198. <h2><a class="anchor" id="CM_revisionHistory"></a>Revision History </h2>
  199. <p>The following table shows the overall high-level history of the various CMSIS releases. In addition, each CMSIS component has its own release history:</p>
  200. <ul>
  201. <li><a href="../../Core/html/index.html#core_revisionHistory"><b>CORE Revision History</b></a></li>
  202. <li><a href="../../Driver/html/index.html#driver_revisionHistory"><b>Driver Revision History</b></a></li>
  203. <li><a href="../../RTOS/html/index.html#rtos_revisionHistory"><b>RTOS API Revision History</b></a></li>
  204. <li><a href="../../Pack/html/index.html#pack_revisionHistory"><b>Pack Revision History</b></a></li>
  205. <li><a href="../../SVD/html/index.html#svd_revisionHistory"><b>SVD Revision History</b></a></li>
  206. </ul>
  207. <table class="cmtable" summary="Revision History">
  208. <tr>
  209. <th>Version </th><th>Description </th></tr>
  210. <tr>
  211. <td>4.2 </td><td>Introducing processor support for Cortex-M7. </td></tr>
  212. <tr>
  213. <td>4.1 </td><td>Enhancements in CMSIS-Pack and CMSIS-Driver.<br/>
  214. Added: PackChk validation utility<br/>
  215. Removed support for GNU: Sourcery G++ Lite Edition for ARM </td></tr>
  216. <tr>
  217. <td>4.0 </td><td>First release in CMSIS-Pack format. specifications for CMSIS-Pack, CMSIS-Driver </td></tr>
  218. <tr>
  219. <td>3.30 </td><td>Maintenance release with enhancements in each component </td></tr>
  220. <tr>
  221. <td>3.20 </td><td>Maintenance release with enhancements in each component </td></tr>
  222. <tr>
  223. <td>3.01 </td><td>Added support for Cortex-M0+ processors </td></tr>
  224. <tr>
  225. <td>3.00 </td><td>Added support for SC000 and SC300 processors<br/>
  226. Added support for GNU GCC Compiler<br/>
  227. Added CMSIS-RTOS API </td></tr>
  228. <tr>
  229. <td>2.10 </td><td>Added CMSIS-DSP Library </td></tr>
  230. <tr>
  231. <td>2.0 </td><td>Added support for Cortex-M4 processor </td></tr>
  232. <tr>
  233. <td>1.30 </td><td>Reworked CMSIS startup concept </td></tr>
  234. <tr>
  235. <td>1.01 </td><td>Added support for Cortex-M0 processor </td></tr>
  236. <tr>
  237. <td>1.00 </td><td>Initial release of CMSIS-CORE for Cortex-M3 processor </td></tr>
  238. </table>
  239. </div></div><!-- contents -->
  240. </div><!-- doc-content -->
  241. <!-- start footer part -->
  242. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  243. <ul>
  244. <li class="footer">Generated on Tue Sep 23 2014 18:52:45 for CMSIS by ARM Ltd. All rights reserved.
  245. <!--
  246. <a href="http://www.doxygen.org/index.html">
  247. <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.2
  248. -->
  249. </li>
  250. </ul>
  251. </div>
  252. </body>
  253. </html>