Skip to content
This repository was archived by the owner on Dec 18, 2025. It is now read-only.

Commit 58bccd6

Browse files
committed
Avoid duplicated code by placing general code for all three Core-Types in a generic folder.
The Core-Folder contains the generic code only. The specific code is placed in the folder Core_A/R/M and includes the generic code.
1 parent 7197156 commit 58bccd6

54 files changed

Lines changed: 8283 additions & 9603 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CMSIS/Core/Include/cmsis_armcc.h

Lines changed: 0 additions & 888 deletions
This file was deleted.

CMSIS/Core/Include/cmsis_armclang.h

Lines changed: 0 additions & 1503 deletions
This file was deleted.

CMSIS/Core/Include/cmsis_armclang_ltm.h

Lines changed: 0 additions & 1928 deletions
This file was deleted.

CMSIS/Core/Include/cmsis_gcc.h

Lines changed: 0 additions & 2211 deletions
This file was deleted.

CMSIS/Core/Include/cmsis_iccarm.h

Lines changed: 0 additions & 1002 deletions
This file was deleted.

CMSIS/Core/armcc.h

Lines changed: 652 additions & 0 deletions
Large diffs are not rendered by default.

CMSIS/Core/armclang.h

Lines changed: 829 additions & 0 deletions
Large diffs are not rendered by default.

CMSIS/Core/armclang_ltm.h

Lines changed: 1284 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/**************************************************************************//**
2-
* @file cmsis_compiler.h
2+
* @file compiler.h
33
* @brief CMSIS compiler generic header file
4-
* @version V5.1.0
5-
* @date 09. October 2018
4+
* @version V5.0.0
5+
* @date 04. December 2022
66
******************************************************************************/
77
/*
8-
* Copyright (c) 2009-2018 Arm Limited. All rights reserved.
8+
* Copyright (c) 2009-2022 Arm Limited. All rights reserved.
99
*
1010
* SPDX-License-Identifier: Apache-2.0
1111
*
@@ -22,8 +22,8 @@
2222
* limitations under the License.
2323
*/
2424

25-
#ifndef __CMSIS_COMPILER_H
26-
#define __CMSIS_COMPILER_H
25+
#ifndef __CMSIS_GENERIC_COMPILER_H
26+
#define __CMSIS_GENERIC_COMPILER_H
2727

2828
#include <stdint.h>
2929

@@ -82,6 +82,9 @@
8282
#ifndef __NO_RETURN
8383
#define __NO_RETURN __attribute__((noreturn))
8484
#endif
85+
#ifndef CMSIS_DEPRECATED
86+
#define CMSIS_DEPRECATED __attribute__((deprecated))
87+
#endif
8588
#ifndef __USED
8689
#define __USED __attribute__((used))
8790
#endif
@@ -154,6 +157,9 @@
154157
#ifndef __NO_RETURN
155158
#define __NO_RETURN __attribute__((noreturn))
156159
#endif
160+
#ifndef CMSIS_DEPRECATED
161+
#define CMSIS_DEPRECATED __attribute__((deprecated))
162+
#endif
157163
#ifndef __USED
158164
#define __USED __attribute__((used))
159165
#endif
@@ -228,6 +234,10 @@
228234
#warning No compiler specific solution for __USED. __USED is ignored.
229235
#define __USED
230236
#endif
237+
#ifndef CMSIS_DEPRECATED
238+
#warning No compiler specific solution for CMSIS_DEPRECATED. CMSIS_DEPRECATED is ignored.
239+
#define CMSIS_DEPRECATED
240+
#endif
231241
#ifndef __WEAK
232242
#define __WEAK __weak
233243
#endif
@@ -279,5 +289,5 @@
279289
#endif
280290

281291

282-
#endif /* __CMSIS_COMPILER_H */
292+
#endif /* __CMSIS_GENERIC_COMPILER_H */
283293

0 commit comments

Comments
 (0)