core_cmInstr.h 3.6 KB

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