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