blob: f2e2746626afefeebcc3435ef433895b5bcc4cdb [file] [log] [blame]
Marc Moreno Berengue20dab392017-11-29 13:18:58 +00001/**************************************************************************//**
2 * @file cmsis_version.h
3 * @brief CMSIS Core(M) Version definitions
Ronald Cron0a78fef2019-09-25 15:16:42 +02004 * @version V5.0.3
5 * @date 24. June 2019
Marc Moreno Berengue20dab392017-11-29 13:18:58 +00006 ******************************************************************************/
7/*
Ronald Cron0a78fef2019-09-25 15:16:42 +02008 * Copyright (c) 2009-2019 ARM Limited. All rights reserved.
Marc Moreno Berengue20dab392017-11-29 13:18:58 +00009 *
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 * 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
25#if defined ( __ICCARM__ )
Ronald Cron0a78fef2019-09-25 15:16:42 +020026 #pragma system_include /* treat file as system include file for MISRA check */
27#elif defined (__clang__)
Marc Moreno Berengue20dab392017-11-29 13:18:58 +000028 #pragma clang system_header /* treat file as system include file */
29#endif
30
31#ifndef __CMSIS_VERSION_H
32#define __CMSIS_VERSION_H
33
34/* CMSIS Version definitions */
35#define __CM_CMSIS_VERSION_MAIN ( 5U) /*!< [31:16] CMSIS Core(M) main version */
Ronald Cron0a78fef2019-09-25 15:16:42 +020036#define __CM_CMSIS_VERSION_SUB ( 3U) /*!< [15:0] CMSIS Core(M) sub version */
Marc Moreno Berengue20dab392017-11-29 13:18:58 +000037#define __CM_CMSIS_VERSION ((__CM_CMSIS_VERSION_MAIN << 16U) | \
38 __CM_CMSIS_VERSION_SUB ) /*!< CMSIS Core(M) version number */
39#endif