1*225f4ba4SMatthias Ringwald /**************************************************************************//** 2*225f4ba4SMatthias Ringwald * @file cmsis_version.h 3*225f4ba4SMatthias Ringwald * @brief CMSIS Core(M) Version definitions 4*225f4ba4SMatthias Ringwald * @version V5.0.2 5*225f4ba4SMatthias Ringwald * @date 19. April 2017 6*225f4ba4SMatthias Ringwald ******************************************************************************/ 7*225f4ba4SMatthias Ringwald /* 8*225f4ba4SMatthias Ringwald * Copyright (c) 2009-2017 ARM Limited. All rights reserved. 9*225f4ba4SMatthias Ringwald * 10*225f4ba4SMatthias Ringwald * SPDX-License-Identifier: Apache-2.0 11*225f4ba4SMatthias Ringwald * 12*225f4ba4SMatthias Ringwald * Licensed under the Apache License, Version 2.0 (the License); you may 13*225f4ba4SMatthias Ringwald * not use this file except in compliance with the License. 14*225f4ba4SMatthias Ringwald * You may obtain a copy of the License at 15*225f4ba4SMatthias Ringwald * 16*225f4ba4SMatthias Ringwald * www.apache.org/licenses/LICENSE-2.0 17*225f4ba4SMatthias Ringwald * 18*225f4ba4SMatthias Ringwald * Unless required by applicable law or agreed to in writing, software 19*225f4ba4SMatthias Ringwald * distributed under the License is distributed on an AS IS BASIS, WITHOUT 20*225f4ba4SMatthias Ringwald * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 21*225f4ba4SMatthias Ringwald * See the License for the specific language governing permissions and 22*225f4ba4SMatthias Ringwald * limitations under the License. 23*225f4ba4SMatthias Ringwald */ 24*225f4ba4SMatthias Ringwald 25*225f4ba4SMatthias Ringwald #if defined ( __ICCARM__ ) 26*225f4ba4SMatthias Ringwald #pragma system_include /* treat file as system include file for MISRA check */ 27*225f4ba4SMatthias Ringwald #elif defined (__clang__) 28*225f4ba4SMatthias Ringwald #pragma clang system_header /* treat file as system include file */ 29*225f4ba4SMatthias Ringwald #endif 30*225f4ba4SMatthias Ringwald 31*225f4ba4SMatthias Ringwald #ifndef __CMSIS_VERSION_H 32*225f4ba4SMatthias Ringwald #define __CMSIS_VERSION_H 33*225f4ba4SMatthias Ringwald 34*225f4ba4SMatthias Ringwald /* CMSIS Version definitions */ 35*225f4ba4SMatthias Ringwald #define __CM_CMSIS_VERSION_MAIN ( 5U) /*!< [31:16] CMSIS Core(M) main version */ 36*225f4ba4SMatthias Ringwald #define __CM_CMSIS_VERSION_SUB ( 1U) /*!< [15:0] CMSIS Core(M) sub version */ 37*225f4ba4SMatthias Ringwald #define __CM_CMSIS_VERSION ((__CM_CMSIS_VERSION_MAIN << 16U) | \ 38*225f4ba4SMatthias Ringwald __CM_CMSIS_VERSION_SUB ) /*!< CMSIS Core(M) version number */ 39*225f4ba4SMatthias Ringwald #endif 40