Version Control

group NMSIS_Core_VersionControl

Version #define symbols for NMSIS release specific C/C++ source code.

We followed the semantic versioning 2.0.0 to control NMSIS version. The version format is MAJOR.MINOR.PATCH, increment the:

  1. MAJOR version when you make incompatible API changes,

  2. MINOR version when you add functionality in a backwards compatible manner, and

  3. PATCH version when you make backwards compatible bug fixes.

The header file nmsis_version.h is included by each core header so that these definitions are available.

Example Usage for NMSIS Version Check:

#if defined(__NMSIS_VERSION) && (__NMSIS_VERSION >= 0x00010105)
   #warning "Yes, we have NMSIS 1.1.5 or later"
#else
   #error "We need NMSIS 1.1.5 or later!"
#endif

Unnamed Group

__NUCLEI_N_REV (0x0309)

Nuclei N class core revision number.

Reversion number format: [15:8] revision number, [7:0] patch number

Attention

Deprecated, this define is exclusive with __NUCLEI_NX_REV

__NUCLEI_NX_REV (0x0207)

Nuclei NX class core revision number.

Reversion number format: [15:8] revision number, [7:0] patch number

Attention

Deprecated, this define is exclusive with __NUCLEI_N_REV

__NUCLEI_CPU_REV (0x030A01)

Nuclei CPU core revision number.

Nuclei RISC-V CPU Revision Number vX.Y.Z, eg. v3.10.1

Attention

This define is exclusive with __NUCLEI_CPU_SERIES

__NUCLEI_CPU_SERIES (0x0200)

Nuclei CPU core series.

Nuclei RISC-V CPU Series Number, eg, 0x200, 0x300, 0x600, 0x900 for 200, 300, 600, 900 series.

Attention

This define is used together with __NUCLEI_CPU_REV

Defines

__NMSIS_VERSION_MAJOR (1U)

Represent the NMSIS major version.

The NMSIS major version can be used to differentiate between NMSIS major releases.

__NMSIS_VERSION_MINOR (2U)

Represent the NMSIS minor version.

The NMSIS minor version can be used to query a NMSIS release update including new features.

__NMSIS_VERSION_PATCH (0U)

Represent the NMSIS patch version.

The NMSIS patch version can be used to show bug fixes in this package.

__NMSIS_VERSION ((__NMSIS_VERSION_MAJOR << 16U) | (__NMSIS_VERSION_MINOR << 8) | __NMSIS_VERSION_PATCH)

Represent the NMSIS Version.

NMSIS Version format: MAJOR.MINOR.PATCH