Skip to content

Commit

Permalink
Core: Align on CMSIS-Core version defines
Browse files Browse the repository at this point in the history
  • Loading branch information
GuentherMartin committed Nov 23, 2023
1 parent b9979fe commit 9b56d94
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions CMSIS/Core/Include/cmsis_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,16 @@
#ifndef __CMSIS_VERSION_H
#define __CMSIS_VERSION_H

/* CMSIS Version definitions */
#define __CM_CMSIS_VERSION_MAIN ( 5U) /*!< [31:16] CMSIS Core(M) main version */
#define __CM_CMSIS_VERSION_SUB ( 6U) /*!< [15:0] CMSIS Core(M) sub version */
/* CMSIS-Core(M) Version definitions */
#define __CM_CMSIS_VERSION_MAIN ( 6U) /*!< \brief [31:16] CMSIS-Core(M) main version */
#define __CM_CMSIS_VERSION_SUB ( 0U) /*!< \brief [15:0] CMSIS-Core(M) sub version */
#define __CM_CMSIS_VERSION ((__CM_CMSIS_VERSION_MAIN << 16U) | \
__CM_CMSIS_VERSION_SUB ) /*!< CMSIS Core(M) version number */
__CM_CMSIS_VERSION_SUB ) /*!< \brief CMSIS Core(M) version number */

/* CMSIS-Core(A) Version definitions */
#define __CA_CMSIS_VERSION_MAIN ( 6U) /*!< \brief [31:16] CMSIS-Core(A) main version */
#define __CA_CMSIS_VERSION_SUB ( 0U) /*!< \brief [15:0] CMSIS-Core(A) sub version */
#define __CA_CMSIS_VERSION ((__CA_CMSIS_VERSION_MAIN << 16U) | \
__CA_CMSIS_VERSION_SUB ) /*!< \brief CMSIS-Core(A) version number */

#endif

0 comments on commit 9b56d94

Please sign in to comment.