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