CMSIS-Core (Cortex-A): Version Control

| CMSIS-Core (Cortex-A) Version 1.1.4 CMSIS-Core support for Cortex-A processor-based devices

- Main Page
- Usage and Description
- Reference

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
Version Control

Version symbols for CMSIS release specific C/C++ source code. More...

## Macros
#define | __CA_CMSIS_VERSION_MAIN (1U)
| [31:16] CMSIS-Core(A) main version More...
#define | __CA_CMSIS_VERSION_SUB (1U)
| [15:0] CMSIS-Core(A) sub version More...
#define | __CA_CMSIS_VERSION
| CMSIS-Core(A) version number. More...
#define | __CA_REV 0x0000U
| Contains the core revision for a Cortex-A class device. More...
#define | __CORTEX_A 9U
| Contains the core family for a Cortex-A class device. More...

## Description

## Macro Definition Documentation

#define __CA_CMSIS_VERSION

Use this define to query the full version of CMSIS-Core(A) component.

Bits | Name | Function
--- | --- | ---
[31:16] | MAIN | __CA_CMSIS_VERSION_MAIN
[15:0] | SUB | __CA_CMSIS_VERSION_SUB

Example:

#if __CA_CMSIS_VERSION < 0x00050001
#error This code needs at least CMSIS-Core(A) version 5.1!
#endif

#define __CA_CMSIS_VERSION_MAIN (1U)

Use this define to query the major version of CMSIS-Core(A) component.

Example:

#if __CA_CMSIS_VERSION_MAIN < 5
#error This code needs at least CMSIS-Core(A) version 5!
#endif

#define __CA_CMSIS_VERSION_SUB (1U)

Use this define to query the minor version of CMSIS-Core(A) component.

Example:

#if __CA_CMSIS_VERSION_MAIN < 5
#error This code needs at least CMSIS-Core(A) version 5!
#else
#if __CA_CMSIS_VERSION_SUB < 1
#warning Using CMSIS-Core(A) version 5.0 compatibility functions.
#endif

#define __CA_REV 0x0000U

Use this define to query the core design revision number implemented in the selected device.

Bits | Name | Function
--- | --- | ---
[15:8] | REV | Revision number
[7:0] | PATCH | Patch number

Example:

#if __CA_REV < 0x0201
#error This code needs at least a core revision r2p1.
#endif

Core revision r0p0

#define __CORTEX_A 9U

Use this define to query the actual Cortex-A class device number implemented in the selected device.

Example:

#if __CORTEX_A == 5
#warning Running on Cortex-A5.
#elif __CORTEX_A == 7
#warning Running on Cortex-A7.
#elif __CORTEX_A == 9
#warning Running on Cortex-A9.
#endif

Cortex-A9 Core