xref: /nrf52832-nimble/nordic/cmsis/include/core_cmFunc.h (revision 150812a83cab50279bd772ef6db1bfaf255f2c5b)
1 /**************************************************************************//**
2  * @file     core_cmFunc.h
3  * @brief    CMSIS Cortex-M Core Function Access Header File
4  * @version  V4.30
5  * @date     20. October 2015
6  ******************************************************************************/
7 /* Copyright (c) 2009 - 2015 ARM LIMITED
8 
9    All rights reserved.
10    Redistribution and use in source and binary forms, with or without
11    modification, are permitted provided that the following conditions are met:
12    - Redistributions of source code must retain the above copyright
13      notice, this list of conditions and the following disclaimer.
14    - Redistributions in binary form must reproduce the above copyright
15      notice, this list of conditions and the following disclaimer in the
16      documentation and/or other materials provided with the distribution.
17    - Neither the name of ARM nor the names of its contributors may be used
18      to endorse or promote products derived from this software without
19      specific prior written permission.
20    *
21    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24    ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE
25    LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26    CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27    SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28    INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29    CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30    ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31    POSSIBILITY OF SUCH DAMAGE.
32    ---------------------------------------------------------------------------*/
33 
34 #if   defined ( __ICCARM__ )
35  #pragma system_include         /* treat file as system include file for MISRA check */
36 #elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
37   #pragma clang system_header   /* treat file as system include file */
38 #endif
39 
40 #ifndef __CORE_CMFUNC_H
41 #define __CORE_CMFUNC_H
42 
43 
44 /* ###########################  Core Function Access  ########################### */
45 /** \ingroup  CMSIS_Core_FunctionInterface
46     \defgroup CMSIS_Core_RegAccFunctions CMSIS Core Register Access Functions
47   @{
48 */
49 
50 /*------------------ RealView Compiler -----------------*/
51 #if   defined ( __CC_ARM )
52   #include "cmsis_armcc.h"
53 
54 /*------------------ ARM Compiler V6 -------------------*/
55 #elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
56   #include "cmsis_armcc_V6.h"
57 
58 /*------------------ GNU Compiler ----------------------*/
59 #elif defined ( __GNUC__ )
60   #include "cmsis_gcc.h"
61 
62 /*------------------ ICC Compiler ----------------------*/
63 #elif defined ( __ICCARM__ )
64   #include <cmsis_iar.h>
65 
66 /*------------------ TI CCS Compiler -------------------*/
67 #elif defined ( __TMS470__ )
68   #include <cmsis_ccs.h>
69 
70 /*------------------ TASKING Compiler ------------------*/
71 #elif defined ( __TASKING__ )
72   /*
73    * The CMSIS functions have been implemented as intrinsics in the compiler.
74    * Please use "carm -?i" to get an up to date list of all intrinsics,
75    * Including the CMSIS ones.
76    */
77 
78 /*------------------ COSMIC Compiler -------------------*/
79 #elif defined ( __CSMC__ )
80   #include <cmsis_csm.h>
81 
82 #endif
83 
84 /*@} end of CMSIS_Core_RegAccFunctions */
85 
86 #endif /* __CORE_CMFUNC_H */
87