Skip to content

Commit

Permalink
Added prefix 'cmsis_generic_' to core independent files
Browse files Browse the repository at this point in the history
  • Loading branch information
Masmiseim36 committed Dec 22, 2022
1 parent 1f0a693 commit 9e47d03
Show file tree
Hide file tree
Showing 26 changed files with 95 additions and 27 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion CMSIS/Core/gcc.h → CMSIS/Core/cmsis_generic_gcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*/

#ifndef __CMSIS_GENERIC_GCC_H
#define __CMSIS_GCC_H
#define __CMSIS_GENERIC_GCC_H

/* ignore some GCC warnings */
#pragma GCC diagnostic push
Expand Down
1 change: 0 additions & 1 deletion CMSIS/Core/iccarm.h → CMSIS/Core/cmsis_generic_iccarm.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
//
//------------------------------------------------------------------------------


#ifndef __CMSIS_GENERIC_ICCARM_H__
#define __CMSIS_GENERIC_ICCARM_H__

Expand Down
4 changes: 2 additions & 2 deletions CMSIS/Core/version.h → CMSIS/Core/cmsis_generic_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
#pragma clang system_header /* treat file as system include file */
#endif

#ifndef __CMSIS_VERSION_H
#define __CMSIS_VERSION_H
#ifndef __CMSIS_GENERIC_VERSION_H
#define __CMSIS_GENERIC_VERSION_H

/* CMSIS Version definitions */
#define __CM_CMSIS_VERSION_MAIN ( 5U) /*!< [31:16] CMSIS Core(A/R/M) main version */
Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core_A/Include/cmsis_armcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#define __CMSIS_ARMCC_H

// Include the generic settigs:
#include "./../../Core/armcc.h"
#include "./../../Core/cmsis_generic_armcc.h"


/** \brief Get CPSR (Current Program Status Register)
Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core_A/Include/cmsis_armclang.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#pragma clang system_header /* treat file as system include file */

// Include the generic settigs:
#include "./../../Core/armclang.h"
#include "./../../Core/cmsis_generic_armclang.h"


/* ########################### Core Function Access ########################### */
Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core_A/Include/cmsis_compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#ifndef __CMSIS_COMPILER_H
#define __CMSIS_COMPILER_H

#include "./../../Core/compiler.h"
#include "./../../Core/cmsis_generic_compiler.h"

#endif /* __CMSIS_COMPILER_H */

2 changes: 1 addition & 1 deletion CMSIS/Core_A/Include/cmsis_gcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#define __CMSIS_GCC_H

// Include the generic settigs:
#include "./../../Core/gcc.h"
#include "./../../Core/cmsis_generic_gcc.h"

/* ignore some GCC warnings */
#pragma GCC diagnostic push
Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core_A/Include/cmsis_iccarm.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#define __CMSIS_ICCARM_H__

// Include the generic settigs:
#include "./../../Core/iccarm.h"
#include "./../../Core/cmsis_generic_iccarm.h"

#ifndef __ICCARM__
#error This file should only be compiled by ICCARM
Expand Down
36 changes: 36 additions & 0 deletions CMSIS/Core_A/Include/cmsis_version.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/**************************************************************************//**
* @file cmsis_version.h
* @brief CMSIS Core(M) Version definitions
* @version V5.1.0
* @date 02. February 2022
******************************************************************************/
/*
* Copyright (c) 2009-2022 ARM Limited. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#if defined ( __ICCARM__ )
#pragma system_include /* treat file as system include file for MISRA check */
#elif defined (__clang__)
#pragma clang system_header /* treat file as system include file */
#endif

#ifndef __CMSIS_VERSION_H
#define __CMSIS_VERSION_H

#include "./../../Core/cmsis_generic_version.h"

#endif
2 changes: 1 addition & 1 deletion CMSIS/Core_M/Include/cmsis_armcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#define __CMSIS_ARMCC_H

// Include the generic settigs:
#include "./../../Core/armcc.h"
#include "./../../Core/cmsis_generic_armcc.h"

/* ######################### Startup and Lowlevel Init ######################## */

Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core_M/Include/cmsis_armclang.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#pragma clang system_header /* treat file as system include file */

// Include the generic settigs:
#include "./../../Core/armclang.h"
#include "./../../Core/cmsis_generic_armclang.h"

/* ######################### Startup and Lowlevel Init ######################## */

Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core_M/Include/cmsis_armclang_ltm.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#pragma clang system_header /* treat file as system include file */

// Include the generic settigs:
#include "./../../Core/armclang_ltm.h"
#include "./../../Core/cmsis_generic_armclang_ltm.h"

/* ######################### Startup and Lowlevel Init ######################## */

Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core_M/Include/cmsis_compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#ifndef __CMSIS_COMPILER_H
#define __CMSIS_COMPILER_H

#include "./../../Core/compiler.h"
#include "./../../Core/cmsis_generic_compiler.h"

#endif /* __CMSIS_COMPILER_H */

2 changes: 1 addition & 1 deletion CMSIS/Core_M/Include/cmsis_gcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#define __CMSIS_GCC_H

// Include the generic settigs:
#include "./../../Core/gcc.h"
#include "./../../Core/cmsis_generic_gcc.h"

/* ignore some GCC warnings */
#pragma GCC diagnostic push
Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core_M/Include/cmsis_iccarm.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#define __CMSIS_ICCARM_H__

// Include the generic settigs:
#include "./../../Core/iccarm.h"
#include "./../../Core/cmsis_generic_iccarm.h"

#ifndef __ICCARM__
#error This file should only be compiled by ICCARM
Expand Down
11 changes: 4 additions & 7 deletions CMSIS/Core_M/Include/cmsis_version.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**************************************************************************//**
* @file cmsis_version.h
* @brief CMSIS Core(M) Version definitions
* @version V5.0.5
* @version V5.1.0
* @date 02. February 2022
******************************************************************************/
/*
Expand Down Expand Up @@ -31,9 +31,6 @@
#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 */
#define __CM_CMSIS_VERSION ((__CM_CMSIS_VERSION_MAIN << 16U) | \
__CM_CMSIS_VERSION_SUB ) /*!< CMSIS Core(M) version number */
#endif
#include "./../../Core/cmsis_generic_version.h"

#endif
2 changes: 1 addition & 1 deletion CMSIS/Core_R/Include/cmsis_armcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#define __CMSIS_ARMCC_H

// Include the generic settigs:
#include "./../../Core/armcc.h"
#include "./../../Core/cmsis_generic_armcc.h"



Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core_R/Include/cmsis_armclang.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
#pragma clang system_header /* treat file as system include file */

// Include the generic settigs:
#include "./../../Core/armclang.h"
#include "./../../Core/cmsis_generic_armclang.h"

#endif /* __CMSIS_ARMCLANG_H */
2 changes: 1 addition & 1 deletion CMSIS/Core_R/Include/cmsis_compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#ifndef __CMSIS_COMPILER_H
#define __CMSIS_COMPILER_H

#include "./../../Core/compiler.h"
#include "./../../Core/cmsis_generic_compiler.h"

#endif /* __CMSIS_COMPILER_H */

2 changes: 1 addition & 1 deletion CMSIS/Core_R/Include/cmsis_gcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
#define __CMSIS_GCC_H

// Include the generic settigs:
#include "./../../Core/gcc.h"
#include "./../../Core/cmsis_generic_gcc.h"

#endif /* __CMSIS_GCC_H */
2 changes: 1 addition & 1 deletion CMSIS/Core_R/Include/cmsis_iccarm.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
#define __CMSIS_ICCARM_H__

// Include the generic settigs:
#include "./../../Core/iccarm.h"
#include "./../../Core/cmsis_generic_iccarm.h"

#endif /* __CMSIS_ICCARM_H__ */
36 changes: 36 additions & 0 deletions CMSIS/Core_R/Include/cmsis_version.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/**************************************************************************//**
* @file cmsis_version.h
* @brief CMSIS Core(M) Version definitions
* @version V5.1.0
* @date 02. February 2022
******************************************************************************/
/*
* Copyright (c) 2009-2022 ARM Limited. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#if defined ( __ICCARM__ )
#pragma system_include /* treat file as system include file for MISRA check */
#elif defined (__clang__)
#pragma clang system_header /* treat file as system include file */
#endif

#ifndef __CMSIS_VERSION_H
#define __CMSIS_VERSION_H

#include "./../../Core/cmsis_generic_version.h"

#endif

0 comments on commit 9e47d03

Please sign in to comment.