cpu: cortexm_common: set default value for CPU_MODEL

This commit is contained in:
Kaspar Schleiser 2015-06-11 20:41:21 +02:00
parent e3a2422b8e
commit ce8b47b75c

View File

@ -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)