cmsis_version.h 1.9 KB

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