Skip to content
Snippets Groups Projects
Commit ce8b47b7 authored by Kaspar Schleiser's avatar Kaspar Schleiser
Browse files

cpu: cortexm_common: set default value for CPU_MODEL

parent e3a2422b
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,9 @@ export USEMODULE += periph
# all cortex MCU's use newlib as libc
export USEMODULE += newlib
# set default for CPU_MODEL
export CPU_MODEL ?= $(CPU)
# export the CPU model and architecture
MODEL = $(shell echo $(CPU_MODEL) | tr 'a-z' 'A-Z')
export CFLAGS += -DCPU_MODEL_$(MODEL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment