diff --git a/cpu/cortexm_common/include/core_cmFunc.h b/cpu/cortexm_common/include/core_cmFunc.h index 26fdd17cad..749a7a7a35 100644 --- a/cpu/cortexm_common/include/core_cmFunc.h +++ b/cpu/cortexm_common/include/core_cmFunc.h @@ -38,6 +38,9 @@ #ifndef __CORE_CMFUNC_H #define __CORE_CMFUNC_H +#ifdef __cplusplus + extern "C" { +#endif /* ########################### Core Function Access ########################### */ /** \ingroup CMSIS_Core_FunctionInterface @@ -668,4 +671,8 @@ __attribute__( ( always_inline ) ) __STATIC_INLINE void __set_FPSCR(uint32_t fps /*@} end of CMSIS_Core_RegAccFunctions */ +#ifdef __cplusplus +} +#endif + #endif /* __CORE_CMFUNC_H */ diff --git a/cpu/cortexm_common/include/core_cmInstr.h b/cpu/cortexm_common/include/core_cmInstr.h index fca425c51d..ed8a6f3cc5 100644 --- a/cpu/cortexm_common/include/core_cmInstr.h +++ b/cpu/cortexm_common/include/core_cmInstr.h @@ -38,6 +38,9 @@ #ifndef __CORE_CMINSTR_H #define __CORE_CMINSTR_H +#ifdef __cplusplus + extern "C" { +#endif /* ########################## Core Instruction Access ######################### */ /** \defgroup CMSIS_Core_InstructionInterface CMSIS Core Instruction Interface @@ -913,4 +916,8 @@ __attribute__((always_inline)) __STATIC_INLINE void __STRT(uint32_t value, volat /*@}*/ /* end of group CMSIS_Core_InstructionInterface */ +#ifdef __cplusplus +} +#endif + #endif /* __CORE_CMINSTR_H */