Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:02

0001 /**************************************************************************//**
0002  * @file     cmsis_version.h
0003  * @brief    CMSIS Core(M) Version definitions
0004  * @version  V5.0.5
0005  * @date     02. February 2022
0006  ******************************************************************************/
0007 /*
0008  * Copyright (c) 2009-2022 ARM Limited. All rights reserved.
0009  *
0010  * SPDX-License-Identifier: Apache-2.0
0011  *
0012  * Licensed under the Apache License, Version 2.0 (the License); you may
0013  * not use this file except in compliance with the License.
0014  * You may obtain a copy of the License at
0015  *
0016  * www.apache.org/licenses/LICENSE-2.0
0017  *
0018  * Unless required by applicable law or agreed to in writing, software
0019  * distributed under the License is distributed on an AS IS BASIS, WITHOUT
0020  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0021  * See the License for the specific language governing permissions and
0022  * limitations under the License.
0023  */
0024 
0025 #if   defined ( __ICCARM__ )
0026   #pragma system_include         /* treat file as system include file for MISRA check */
0027 #elif defined (__clang__)
0028   #pragma clang system_header   /* treat file as system include file */
0029 #endif
0030 
0031 #ifndef __CMSIS_VERSION_H
0032 #define __CMSIS_VERSION_H
0033 
0034 /*  CMSIS Version definitions */
0035 #define __CM_CMSIS_VERSION_MAIN  ( 5U)                                      /*!< [31:16] CMSIS Core(M) main version */
0036 #define __CM_CMSIS_VERSION_SUB   ( 6U)                                      /*!< [15:0]  CMSIS Core(M) sub version */
0037 #define __CM_CMSIS_VERSION       ((__CM_CMSIS_VERSION_MAIN << 16U) | \
0038                                    __CM_CMSIS_VERSION_SUB           )       /*!< CMSIS Core(M) version number */
0039 #endif