Skip to content
Snippets Groups Projects
Commit f977448d authored by Joakim Nohlgård's avatar Joakim Nohlgård
Browse files

cortex-m0: Add extern "C" to core_cmInstr.h

parent ae8c7607
No related branches found
No related tags found
No related merge requests found
...@@ -38,6 +38,9 @@ ...@@ -38,6 +38,9 @@
#ifndef __CORE_CMINSTR_H #ifndef __CORE_CMINSTR_H
#define __CORE_CMINSTR_H #define __CORE_CMINSTR_H
#ifdef __cplusplus
extern "C" {
#endif
/* ########################## Core Instruction Access ######################### */ /* ########################## Core Instruction Access ######################### */
/** \defgroup CMSIS_Core_InstructionInterface CMSIS Core Instruction Interface /** \defgroup CMSIS_Core_InstructionInterface CMSIS Core Instruction Interface
...@@ -523,7 +526,7 @@ __attribute__( ( always_inline ) ) __STATIC_INLINE int32_t __REVSH(int32_t value ...@@ -523,7 +526,7 @@ __attribute__( ( always_inline ) ) __STATIC_INLINE int32_t __REVSH(int32_t value
*/ */
__attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __ROR(uint32_t op1, uint32_t op2) __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __ROR(uint32_t op1, uint32_t op2)
{ {
return (op1 >> op2) | (op1 << (32 - op2)); return (op1 >> op2) | (op1 << (32 - op2));
} }
...@@ -877,4 +880,8 @@ __attribute__( ( always_inline ) ) __STATIC_INLINE void __STRT(uint32_t value, v ...@@ -877,4 +880,8 @@ __attribute__( ( always_inline ) ) __STATIC_INLINE void __STRT(uint32_t value, v
/*@}*/ /* end of group CMSIS_Core_InstructionInterface */ /*@}*/ /* end of group CMSIS_Core_InstructionInterface */
#ifdef __cplusplus
}
#endif
#endif /* __CORE_CMINSTR_H */ #endif /* __CORE_CMINSTR_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment