Version #define symbols for CMSIS release specific C/C++ source code. More...
Macros | |
#define | __CM_CMSIS_VERSION |
Contains the CMSIS version. | |
#define | __CM_CMSIS_VERSION_MAIN |
Contains the CMSIS major version. | |
#define | __CM_CMSIS_VERSION_SUB |
Contains the CMSIS minor version. | |
#define | __CORTEX_M |
Contains the core version for a Cortex-M class controller. | |
#define | __CORTEX_SC |
Contains the core version for a Cortex Secure Core controller. | |
#define | __STAR_MC |
Contains the core version for a STAR-MC controller. | |
Version #define symbols for CMSIS release specific C/C++ source code.
CMSIS-Core Processor Files contain macros __CORTEX_M , __CORTEX_SC or __STAR_MC that identify the processor core variant described in the file.
Additionally each processor header file includes the cmsis_version.h file with __CM_CMSIS_VERSION define that identifies the CMSIS version used.
This allows application code and middleware components to verify the target processor and the CMSIS version that CMSIS-Core component implies.
#define __CM_CMSIS_VERSION |
Contains the CMSIS version.
The CMSIS version is a combination of the __CM_CMSIS_VERSION_MAIN (bits 31..16) and __CM_CMSIS_VERSION_SUB (bits 15..0).
Code Example:
#define __CM_CMSIS_VERSION_MAIN |
Contains the CMSIS major version.
The CMSIS major version can be used to differentiate between CMSIS major releases.
#define __CM_CMSIS_VERSION_SUB |
Contains the CMSIS minor version.
The CMSIS minor version can be used to query a CMSIS release update level.
#define __CORTEX_M |
Contains the core version for a Cortex-M class controller.
This define can be used to differentiate between the various available Cortex-M controllers. Possible values are:
This define is only available for Cortex-M class controllers. Code Example:
#define __CORTEX_SC |
Contains the core version for a Cortex Secure Core controller.
This define can be used to differentiate between the various available Cortex Secure Core controllers. Possible values are:
This define is only available for Cortex Secure Core controllers. Code Example:
#define __STAR_MC |
Contains the core version for a STAR-MC controller.
This define can be used to differentiate between the various available STAR-MC controllers. Possible values are:
This define is only available for STAR-MC controllers. Code Example: