Skip to content

Commit

Permalink
cortex-m3: Add extern "C" to core_cmInstr.h
Browse files Browse the repository at this point in the history
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
  • Loading branch information
Joakim Gebart authored and OlegHahm committed Mar 31, 2015
1 parent f713eec commit 5ea45b2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cpu/cortex-m3_common/include/core_cmInstr.h
Expand Up @@ -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
Expand Down Expand Up @@ -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)
{
return (op1 >> op2) | (op1 << (32 - op2));
return (op1 >> op2) | (op1 << (32 - op2));
}


Expand Down Expand Up @@ -877,4 +880,8 @@ __attribute__( ( always_inline ) ) __STATIC_INLINE void __STRT(uint32_t value, v

/*@}*/ /* end of group CMSIS_Core_InstructionInterface */

#ifdef __cplusplus
}
#endif

#endif /* __CORE_CMINSTR_H */

0 comments on commit 5ea45b2

Please sign in to comment.