Skip to content
This repository was archived by the owner on Dec 18, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CMSIS/Core/Include/cachel1_armv7.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
#ifndef ARM_CACHEL1_ARMV7_H
#define ARM_CACHEL1_ARMV7_H

#ifdef __cplusplus
extern "C" {
#endif

/**
\ingroup CMSIS_Core_FunctionInterface
\defgroup CMSIS_Core_CacheFunctions Cache Functions
Expand Down Expand Up @@ -408,4 +412,8 @@ __STATIC_FORCEINLINE void SCB_CleanInvalidateDCache_by_Addr (uint32_t *addr, int

/*@} end of CMSIS_Core_CacheFunctions */

#ifdef __cplusplus
}
#endif

#endif /* ARM_CACHEL1_ARMV7_H */
6 changes: 6 additions & 0 deletions CMSIS/Core/Include/cmsis_armcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
#ifndef __CMSIS_ARMCC_H
#define __CMSIS_ARMCC_H

#ifdef __cplusplus
extern "C" {
#endif

#if defined(__ARMCC_VERSION) && (__ARMCC_VERSION < 400677)
#error "Please use Arm Compiler Toolchain V4.0.677 or later!"
Expand Down Expand Up @@ -883,5 +886,8 @@ __attribute__((always_inline)) __STATIC_INLINE uint32_t __USAT(int32_t val, uint
#endif /* ((defined (__ARM_ARCH_7EM__) && (__ARM_ARCH_7EM__ == 1)) ) */
/*@} end of group CMSIS_SIMD_intrinsics */

#ifdef __cplusplus
}
#endif

#endif /* __CMSIS_ARMCC_H */
7 changes: 7 additions & 0 deletions CMSIS/Core/Include/cmsis_armclang.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@

#pragma clang system_header /* treat file as system include file */

#ifdef __cplusplus
extern "C" {
#endif

#ifndef __ARM_COMPAT_H
#include <arm_compat.h> /* Compatibility header for Arm Compiler 5 intrinsics */
#endif
Expand Down Expand Up @@ -1485,5 +1489,8 @@ __STATIC_FORCEINLINE int32_t __SMMLA (int32_t op1, int32_t op2, int32_t op3)
#endif /* (__ARM_FEATURE_DSP == 1) */
/*@} end of group CMSIS_SIMD_intrinsics */

#ifdef __cplusplus
}
#endif

#endif /* __CMSIS_ARMCLANG_H */
7 changes: 7 additions & 0 deletions CMSIS/Core/Include/cmsis_armclang_ltm.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@

#pragma clang system_header /* treat file as system include file */

#ifdef __cplusplus
extern "C" {
#endif

#ifndef __ARM_COMPAT_H
#include <arm_compat.h> /* Compatibility header for Arm Compiler 5 intrinsics */
#endif
Expand Down Expand Up @@ -1910,5 +1914,8 @@ __STATIC_FORCEINLINE int32_t __SMMLA (int32_t op1, int32_t op2, int32_t op3)
#endif /* (__ARM_FEATURE_DSP == 1) */
/*@} end of group CMSIS_SIMD_intrinsics */

#ifdef __cplusplus
}
#endif

#endif /* __CMSIS_ARMCLANG_H */
7 changes: 7 additions & 0 deletions CMSIS/Core/Include/cmsis_compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@

#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif

/*
* Arm Compiler 4/5
*/
Expand Down Expand Up @@ -278,6 +282,9 @@
#error Unknown compiler.
#endif

#ifdef __cplusplus
}
#endif

#endif /* __CMSIS_COMPILER_H */

8 changes: 8 additions & 0 deletions CMSIS/Core/Include/cmsis_gcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
#pragma GCC diagnostic ignored "-Wconversion"
#pragma GCC diagnostic ignored "-Wunused-parameter"

#ifdef __cplusplus
extern "C" {
#endif

/* Fallback for __has_builtin */
#ifndef __has_builtin
#define __has_builtin(x) (0)
Expand Down Expand Up @@ -2203,7 +2207,11 @@ __STATIC_FORCEINLINE int32_t __SMMLA (int32_t op1, int32_t op2, int32_t op3)
#endif /* (__ARM_FEATURE_DSP == 1) */
/*@} end of group CMSIS_SIMD_intrinsics */

#ifdef __cplusplus
}
#endif

#pragma GCC diagnostic pop


#endif /* __CMSIS_GCC_H */
8 changes: 8 additions & 0 deletions CMSIS/Core/Include/cmsis_iccarm.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
#error This file should only be compiled by ICCARM
#endif

#ifdef __cplusplus
extern "C" {
#endif

#pragma system_include

#define __IAR_FT _Pragma("inline=forced") __intrinsic
Expand Down Expand Up @@ -968,4 +972,8 @@ __packed struct __iar_u32 { uint32_t v; };

#define __SXTAB16_RORn(ARG1, ARG2, ARG3) __SXTAB16(ARG1, __ROR(ARG2, ARG3))

#ifdef __cplusplus
}
#endif

#endif /* __CMSIS_ICCARM_H__ */
8 changes: 8 additions & 0 deletions CMSIS/Core/Include/mpu_armv7.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
#ifndef ARM_MPU_ARMV7_H
#define ARM_MPU_ARMV7_H

#ifdef __cplusplus
extern "C" {
#endif

#define ARM_MPU_REGION_SIZE_32B ((uint8_t)0x04U) ///!< MPU Region Size 32 Bytes
#define ARM_MPU_REGION_SIZE_64B ((uint8_t)0x05U) ///!< MPU Region Size 64 Bytes
#define ARM_MPU_REGION_SIZE_128B ((uint8_t)0x06U) ///!< MPU Region Size 128 Bytes
Expand Down Expand Up @@ -272,4 +276,8 @@ __STATIC_INLINE void ARM_MPU_Load(ARM_MPU_Region_t const* table, uint32_t cnt)
ARM_MPU_OrderedMemcpy(&(MPU->RBAR), &(table->RBAR), cnt*rowWordSize);
}

#ifdef __cplusplus
}
#endif

#endif
8 changes: 8 additions & 0 deletions CMSIS/Core/Include/mpu_armv8.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
#ifndef ARM_MPU_ARMV8_H
#define ARM_MPU_ARMV8_H

#ifdef __cplusplus
extern "C" {
#endif

/** \brief Attribute for device memory (outer only) */
#define ARM_MPU_ATTR_DEVICE ( 0U )

Expand Down Expand Up @@ -348,5 +352,9 @@ __STATIC_INLINE void ARM_MPU_Load_NS(uint32_t rnr, ARM_MPU_Region_t const* table
}
#endif

#ifdef __cplusplus
}
#endif

#endif

8 changes: 8 additions & 0 deletions CMSIS/Core/Include/pmu_armv8.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
#ifndef ARM_PMU_ARMV8_H
#define ARM_PMU_ARMV8_H

#ifdef __cplusplus
extern "C" {
#endif

/**
* \brief PMU Events
* \note See the Armv8.1-M Architecture Reference Manual for full details on these PMU events.
Expand Down Expand Up @@ -334,4 +338,8 @@ __STATIC_INLINE void ARM_PMU_CNTR_Increment(uint32_t mask)
PMU->SWINC = mask;
}

#ifdef __cplusplus
}
#endif

#endif
10 changes: 10 additions & 0 deletions CMSIS/Core/Include/tz_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@

#ifndef TZ_MODULEID_T
#define TZ_MODULEID_T

#ifdef __cplusplus
extern "C"
{
#endif

/// \details Data type that identifies secure software modules called by a process.
typedef uint32_t TZ_ModuleId_t;
#endif
Expand Down Expand Up @@ -67,4 +73,8 @@ uint32_t TZ_LoadContext_S (TZ_MemoryId_t id);
/// \return execution status (1: success, 0: error)
uint32_t TZ_StoreContext_S (TZ_MemoryId_t id);

#ifdef __cplusplus
}
#endif

#endif // TZ_CONTEXT_H