core_cmfunc.h 2.5 KB

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