Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
f977448d
Commit
f977448d
authored
10 years ago
by
Joakim Nohlgård
Browse files
Options
Downloads
Patches
Plain Diff
cortex-m0: Add extern "C" to core_cmInstr.h
Signed-off-by:
Joakim Gebart
<
joakim.gebart@eistec.se
>
parent
ae8c7607
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cpu/cortex-m0_common/include/core_cmInstr.h
+8
-1
8 additions, 1 deletion
cpu/cortex-m0_common/include/core_cmInstr.h
with
8 additions
and
1 deletion
cpu/cortex-m0_common/include/core_cmInstr.h
+
8
−
1
View file @
f977448d
...
@@ -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 */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment