]> begriffs open source - cmsis/blob - CMSIS/Core/Include/core_cmfunc.h
Initial Commit starting from:
[cmsis] / CMSIS / Core / Include / core_cmfunc.h
1 /**************************************************************************//**\r
2  * @file     core_cmfunc.h\r
3  * @brief    CMSIS Cortex-M Core Function Access Header File\r
4  * @version  V5.00\r
5  * @date     21. December 2015\r
6  ******************************************************************************/\r
7 /*\r
8  * Copyright (c) 2009-2016 ARM Limited. All rights reserved.\r
9  *\r
10  * SPDX-License-Identifier: Apache-2.0\r
11  *\r
12  * Licensed under the Apache License, Version 2.0 (the License); you may\r
13  * not use this file except in compliance with the License.\r
14  * You may obtain a copy of the License at\r
15  *\r
16  * http://www.apache.org/licenses/LICENSE-2.0\r
17  *\r
18  * Unless required by applicable law or agreed to in writing, software\r
19  * distributed under the License is distributed on an AS IS BASIS, WITHOUT\r
20  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
21  * See the License for the specific language governing permissions and\r
22  * limitations under the License.\r
23  */\r
24 \r
25 #if   defined ( __ICCARM__ )\r
26  #pragma system_include         /* treat file as system include file for MISRA check */\r
27 #elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)\r
28   #pragma clang system_header   /* treat file as system include file */\r
29 #endif\r
30 \r
31 #ifndef __CORE_CMFUNC_H\r
32 #define __CORE_CMFUNC_H\r
33 \r
34 \r
35 /* ###########################  Core Function Access  ########################### */\r
36 /** \ingroup  CMSIS_Core_FunctionInterface\r
37     \defgroup CMSIS_Core_RegAccFunctions CMSIS Core Register Access Functions\r
38   @{\r
39 */\r
40 \r
41 /*------------------ ARM Compiler 4/5 ------------------*/\r
42 #if   defined ( __CC_ARM )\r
43   #include "cmsis_armcc.h"\r
44 \r
45 /*------------------ ARM Compiler 6 --------------------*/\r
46 #elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)\r
47   #include "cmsis_armclang.h"\r
48 \r
49 /*------------------ GNU Compiler ----------------------*/\r
50 #elif defined ( __GNUC__ )\r
51   #include "cmsis_gcc.h"\r
52 \r
53 /*------------------ ICC Compiler ----------------------*/\r
54 #elif defined ( __ICCARM__ )\r
55   #include <cmsis_iar.h>\r
56 \r
57 /*------------------ TI CCS Compiler -------------------*/\r
58 #elif defined ( __TI_ARM__ )\r
59   #include <cmsis_ccs.h>\r
60 \r
61 /*------------------ TASKING Compiler ------------------*/\r
62 #elif defined ( __TASKING__ )\r
63   /*\r
64    * The CMSIS functions have been implemented as intrinsics in the compiler.\r
65    * Please use "carm -?i" to get an up to date list of all intrinsics,\r
66    * Including the CMSIS ones.\r
67    */\r
68 \r
69 /*------------------ COSMIC Compiler -------------------*/\r
70 #elif defined ( __CSMC__ )\r
71   #include <cmsis_csm.h>\r
72 \r
73 #endif\r
74 \r
75 /*@}*/ /* end of CMSIS_Core_RegAccFunctions */\r
76 \r
77 #endif /* __CORE_CMFUNC_H */\r