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
2f47ec60
Commit
2f47ec60
authored
9 years ago
by
Joakim Nohlgård
Browse files
Options
Downloads
Patches
Plain Diff
cortexm_common: Add CMSIS DSP defines
parent
6e32b337
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/Makefile.include.cortexm_common
+18
-0
18 additions, 0 deletions
cpu/Makefile.include.cortexm_common
with
18 additions
and
0 deletions
cpu/Makefile.include.cortexm_common
+
18
−
0
View file @
2f47ec60
...
@@ -27,6 +27,24 @@ endif
...
@@ -27,6 +27,24 @@ endif
CFLAGS_FPU
?=
-mfloat-abi
=
soft
CFLAGS_FPU
?=
-mfloat-abi
=
soft
export
MCPU
?=
$(
CPU_ARCH
)
export
MCPU
?=
$(
CPU_ARCH
)
# CMSIS DSP needs to know about the CPU core
ifneq
(,$(filter cmsis-dsp,$(USEPKG)))
# definition needed to use cmsis-dsp headers
ifeq
($(CPU_ARCH),cortex-m0)
export
CFLAGS
+=
-DARM_MATH_CM0
else
ifeq
($(CPU_ARCH),cortex-m0plus)
export
CFLAGS
+=
-DARM_MATH_CM0PLUS
else
ifeq
($(CPU_ARCH),cortex-m3)
export
CFLAGS
+=
-DARM_MATH_CM3
else
ifeq
($(CPU_ARCH),cortex-m4)
export
CFLAGS
+=
-DARM_MATH_CM4
else
ifeq
($(CPU_ARCH),cortex-m4f)
export
CFLAGS
+=
-DARM_MATH_CM4
else
ifeq
($(CPU_ARCH),cortex-m7)
export
CFLAGS
+=
-DARM_MATH_CM7
endif
endif
# Include CPU specific includes:
# Include CPU specific includes:
export
INCLUDES
+=
-I
$(
RIOTCPU
)
/
$(
CPU
)
/include
export
INCLUDES
+=
-I
$(
RIOTCPU
)
/
$(
CPU
)
/include
...
...
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