]> begriffs open source - cmsis/blob - CMSIS/DoxyGen/General/src/introduction.txt
Initial CMSIS-RTOS v2 API Documentation, Example and Component Viewer Description
[cmsis] / CMSIS / DoxyGen / General / src / introduction.txt
1 /**************************************************************************************************/
2 /** 
3 \mainpage Introduction
4
5 The <b>Cortex Microcontroller Software Interface Standard</b> (CMSIS) is a vendor-independent 
6 hardware abstraction layer for the Cortex&reg;-M processor series and defines generic tool
7 interfaces.  The CMSIS enables consistent device support and 
8 simple software interfaces to the processor and the peripherals, simplifying software re-use, 
9 reducing the learning curve for microcontroller developers, and reducing the time to market for new devices. 
10     
11 The CMSIS is defined in close cooperation with various silicon and software vendors and 
12 provides a common approach to interface to peripherals, real-time operating systems, 
13 and middleware components. The CMSIS is intended to enable the combination of software components 
14 from multiple middleware vendors. 
15
16 CMSIS Version 5 supports also the <a class="el" href="http://www.arm.com/products/processors/instruction-set-architectures/armv8-m-architecture.php" target="_blank">ARMv8-M architecture</a> 
17 including <a class="el" href="http://www.arm.com/products/processors/technologies/trustzone/index.php" target="_blank">TrustZone&reg; for ARMv8-M</a> hardware security extensions.
18
19 \anchor CM_Components
20 The CMSIS components are:
21  - <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, Cortex-M7, SC000, and SC300. 
22    Included are also SIMD intrinsic functions for Cortex-M4 and Cortex-M7 SIMD instructions.
23
24  - <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
25     and connects microcontroller peripherals with middleware that implements for example communication stacks, file systems, or graphic user interfaces.
26
27  - <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).
28    The library is available for all Cortex-M cores. The Cortex-M4 and Cortex-M7 implementations are optimized for the SIMD instruction set.
29
30  - <a href="../../RTOS/html/index.html"><b>CMSIS-RTOS v1</b></a>: Common API for Real-Time Operating Systems along with reference implementation based on RTX.
31     It provides a standardized programming interface that is portable to many RTOS and enables software components that can work across multiple RTOS systems.
32
33  - <a href="../../RTOS2/html/index.html"><b>CMSIS-RTOS v2</b></a>: extends CMSIS-RTOS v1 with support for ARMv8-M architecture, dynamic object creation,
34     provisions for multi-core systems, and binary compatible interface across ABI compliant compilers.
35         
36  - <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, 
37     Flash programming algorithms, source code templates, and example projects. Development tools and web infrastructures use the PDSC file to extract device parameters, 
38     software components, and evaluation board configurations.
39
40  - <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 
41     debuggers or header files with peripheral register and interrupt definitions.
42
43  - <a href="../../DAP/html/index.html"><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
44     well suited for integration on evaluation boards. This component is provided as separate download.
45
46 \note Refer to \ref CM_Pack_Content for more information on the content of the Software Pack.
47
48 \image html CMSISv4_small.png "CMSIS Structure"
49         
50 \section Motivation Motivation
51
52 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.
53 CMSIS is not a huge software layer that introduces overhead and does not define standard peripherals. The silicon industry can
54 therefore support the wide variations of Cortex-M processor-based devices with this common standard.
55
56 In detail the benefits of the CMSIS are:
57
58  - 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.
59  - Consistent software interfaces improve the software portability and re-usability. Generic software libraries and interfaces provide consistent software framework.
60  - Provides interfaces for debug connectivity, debug peripheral views, software delivery, and device support to reduce time-to-market for new microcontroller deployment.
61  - Provides a compiler independent layer that allows using different compilers. CMSIS is supported by all mainstream compilers (ARMCC, IAR, and GNU).
62  - Enhances program debugging with peripheral information for debuggers and ITM channels for printf-style output and RTOS kernel awareness. 
63  - CMSIS is delivered in CMSIS-Pack format which enables fast software delivery, simplifies updates, and enables consistent integration into development tools. 
64
65
66 \section CodingRules Coding Rules
67
68 The CMSIS uses the following essential coding rules and conventions:
69  - Compliant with ANSI C and C++.
70  - Uses ANSI C standard data types defined in \b <stdint.h>.
71  - Variables and parameters have a complete data type.
72  - Expressions for \em \#define constants are enclosed in parenthesis.
73  - Conforms to MISRA 2004. MISRA rule violations are documented.
74           
75 In addition, the CMSIS recommends the following conventions for identifiers:
76  - \b CAPITAL names to identify Core Registers, Peripheral Registers, and CPU Instructions.
77  - \b CamelCase names to identify function names and interrupt functions.
78  - \b Namespace_ prefixes avoid clashes with user identifiers and provide functional groups (i.e. for peripherals, RTOS, or DSP Library).
79
80 The CMSIS is documented within the source files with:
81  \li Comments that use the C or C++ style. 
82  \li Doxygen compliant <b>function comments</b> that provide:
83     - brief function overview.
84     - detailed description of the function.
85     - detailed parameter explanation.
86     - detailed information about return values.
87
88 Doxygen comment example:
89 \verbatim
90 /** 
91  * @brief  Enable Interrupt in NVIC Interrupt Controller
92  * @param  IRQn  interrupt number that specifies the interrupt
93  * @return none.
94  * Enable the specified interrupt in the NVIC Interrupt Controller.
95  * Other settings of the interrupt such as priority are not affected.
96  */
97 \endverbatim
98
99
100 \section License Licence
101
102 The CMSIS is provided free of charge by ARM under Apache 2.0 license. 
103 View the <a href="LICENSE">Apache 2.0 License</a>.
104
105
106 \section CM_Pack_Content ARM::CMSIS Pack
107
108 The <b>ARM::CMSIS</b> Pack contains the following:
109 |File/Directory    |Content                                                                           |
110 |:-----------------|:---------------------------------------------------------------------------------|
111 |\b ARM.CMSIS.pdsc |Package description file                                                          |
112 |\b CMSIS          |\ref CM_Components "CMSIS components" (see below)                                 |
113 |\b Device         |ARM reference implementations of Cortex-M devices                                 |
114
115 CMSIS Directory
116 ---------------
117
118 The directory <b>CMSIS</b> contains the  "CMSIS End User License Agreement" as PDF and RTF, a README text file, the
119 index.html file for this documentation, and the following sub-directories:
120
121 |Directory                 |Content                                                                                                                                  |
122 |:-------------------------|:----------------------------------------------------------------------------------------------------------------------------------------|
123 |\b Documentation          |This documentation                                                                                                                       |
124 |\b DAP                    |<a href="../../DAP/html/index.html"><b>CMSIS-DAP</b></a> Debug Access Port source code and reference implementations                     |
125 |\b Driver                 |Header files for the <a href="../../Driver/html/index.html"><b>CMSIS-Driver</b></a> peripheral interface API                             |
126 |\b DSP_Lib                |<a href="../../DSP/html/index.html"><b>CMSIS-DSP</b></a> software library source code                                                    |
127 |\b Include                |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>|
128 |\b Lib                    |<a href="../../DSP/html/index.html"><b>CMSIS-DSP</b></a> generated libraries for ARMCC and GCC                                           |
129 |\b Pack                   |<a href="../../Pack/html/_pack__example.html"><b>CMSIS-Pack</b></a> example                                                              |
130 |\b RTOS                   |<a href="../../RTOS/html/index.html"><b>CMSIS-RTOS API Version 1</b></a> along with RTX reference implementation                         |
131 |\b RTOSv2                 |<a href="../../RTOSv1/html/index.html"><b>CMSIS-RTOS Version 2</b></a> along with RTX reference implementation                           |
132 |\b SVD                    |<a href="../../SVD/html/index.html"><b>CMSIS-SVD</b></a> example                                                                         |
133 |\b UserCodeTemplates\\ARM |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 |
134 |\b Utilities              |PACK.xsd (<a href="../../Pack/html/_pack__example.html"><b>CMSIS-Pack</b></a> schema file), PackChk.exe (checking tool for software packs), \n CMSIS-SVD.xsd (<a href="../../SVD/html/index.html"><b>CMSIS-SVD</b></a> schema file), SVDConv.exe (conversion tool for SVD files)|
135
136 <hr>
137 */
138
139 /*=======0=========1=========2=========3=========4=========5=========6=========7=========8=========9=========0=========1====*/
140 /**
141 \page cm_revisionHistory Revision History 
142
143
144 The following table shows the overall high-level history of the various CMSIS releases.
145 In addition, each CMSIS component has its own release history:
146
147 - <a href="../../Core/html/core_revision_history.html"><b>CORE Revision History</b></a>
148 - <a href="../../DAP/html/rev_hist_dap.html"><b>DAP Revision History</b></a>
149 - <a href="../../Driver/html/driver_revision_history.html"><b>Driver Revision History</b></a>
150 - <a href="../../DSP/html/_change_log_pg.html"><b>DSP Revision History (Change Log)</b></a>
151 - <a href="../../Pack/html/pack_revision_history.html"><b>Pack Revision History</b></a>
152 - <a href="../../RTOS/html/rtos_revision_history.html"><b>RTOS v1 Revision History</b></a>
153 - <a href="../../RTOS2/html/rtos_revision_history.html"><b>RTOS v2 Revision History</b></a>
154 - <a href="../../RTX/html/rtx_revision_history.html"><b>RTX Revision History</b></a>
155 - <a href="../../SVD/html/svd_revision_history.html"><b>SVD Revision History</b></a>
156
157
158
159 <table class="cmtable" summary="Revision History">
160     <tr>
161       <th>Version</th>
162       <th>Description</th>
163     </tr>
164     <tr>
165       <td>5.0.0</td>
166       <td>
167         Added <a href="http://www.arm.com/products/processors/instruction-set-architectures/armv8-m-architecture.php" target="_blank"><b>ARMv8-M architecture</b></a> support.
168         - CMSIS-CORE 5.0.0
169                     - CMSIS-RTOS 2.0.0
170         - CMSIS-PACK 1.4.4 introducing CPDSC project description
171       </td>
172     </tr>
173     <tr>
174       <td>4.5.0</td>
175       <td>
176         Maintenance release that is fixing defects. See component's revision history for more details.
177         See component's revision history for more details.
178         - CMSIS-CORE 4.30.0
179         - CMSIS-DAP 1.1.0 (unchanged)
180         - CMSIS-Driver 2.04.0
181         - CMSIS-DSP 1.4.7
182         - CMSIS-PACK 1.4.1
183         - CMSIS-RTOS RTX 4.80.0
184         - CMSIS-SVD 1.3.1 
185       </td>
186     </tr>
187     <tr>
188       <td>4.4.0</td>
189       <td>
190         Feature release adding CMSIS-DAP (see extended End User Licence Agreement) and CMSIS-Driver for CAN.
191         See component's revision history for more details.
192         - CMSIS-CORE 4.20.0
193         - CMSIS-DAP 1.1.0
194         - CMSIS-Driver 2.03.0
195         - CMSIS-DSP 1.4.5  (unchanged)
196         - CMSIS-RTOS RTX 4.79.0
197         - CMSIS-PACK 1.4.0
198         - CMSIS-SVD 1.3.0
199       </td>
200     </tr>
201     <tr>
202       <td>4.3.0</td>
203       <td>
204         Maintenance release adding SAI CMSIS-Driver and fixing defects. See component's revision history for more details.
205         - CMSIS-CORE 4.10.0
206         - CMSIS-Driver 2.02.0
207         - CMSIS-DSP 1.4.5
208         - CMSIS-RTOS RTX 4.78.0
209         - CMSIS-PACK 1.3.3
210         - CMSIS-SVD (unchanged)
211       </td>
212     </tr>
213     <tr>
214       <td>4.2</td>
215       <td>Introducing processor support for Cortex-M7.
216       </td>
217     </tr>
218     <tr>
219       <td>4.1</td>
220       <td>Enhancements in CMSIS-Pack and CMSIS-Driver.\n
221       Added: PackChk validation utility\n
222       Removed support for GNU: Sourcery G++ Lite Edition for ARM</td>
223     </tr>
224     <tr>
225       <td>4.0</td>
226       <td>First release in CMSIS-Pack format.\n Added specifications for CMSIS-Pack, CMSIS-Driver</td>
227     </tr>
228     <tr>
229       <td>3.30</td>
230       <td>Maintenance release with enhancements in each component</td>
231     </tr>
232     <tr>
233       <td>3.20</td>
234       <td>Maintenance release with enhancements in each component</td>
235     </tr>
236     <tr>
237       <td>3.01</td>
238       <td>Added support for Cortex-M0+ processors</td>
239     </tr>
240     <tr>
241       <td>3.00</td>
242       <td>Added support for SC000 and SC300 processors\n
243       Added support for GNU GCC Compiler\n
244       Added CMSIS-RTOS API</td>
245     </tr>
246     <tr>
247       <td>2.10</td>
248       <td>Added CMSIS-DSP Library</td>
249     </tr>
250     <tr>
251       <td>2.0</td>
252       <td>Added support for Cortex-M4 processor</td>
253     </tr>
254     <tr>
255       <td>1.30</td>
256       <td>Reworked CMSIS startup concept</td>
257     </tr>
258     <tr>
259       <td>1.01</td>
260       <td>Added support for Cortex-M0 processor</td>
261     </tr>
262     <tr>
263       <td>1.00</td>
264       <td>Initial release of CMSIS-CORE for Cortex-M3 processor</td>
265     </tr>
266 </table>
267
268 */