mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu: use makefiles/utils uppercase
Convert the variables to uppercase using the 'makefiles/utils' function.
This commit is contained in:
parent
ba55d1d7f5
commit
4b93f27d83
@ -4,7 +4,7 @@ export CPU_ARCH = $(EFM32_ARCHITECTURE)
|
||||
export CPU_FAM = $(EFM32_FAMILY)
|
||||
|
||||
# the em_device.h header requires a global define with the cpu model
|
||||
CFLAGS += -D$(shell echo $(CPU_MODEL) | tr 'a-z' 'A-Z')
|
||||
CFLAGS += -D$(call uppercase_and_underscore,$(CPU_MODEL))
|
||||
|
||||
# include Gecko SDK package
|
||||
USEPKG += gecko_sdk
|
||||
|
@ -2,8 +2,7 @@ PSEUDOMODULES += msp430_malloc
|
||||
|
||||
INCLUDES += -I$(RIOTCPU)/msp430_common/include/
|
||||
|
||||
MODEL = $(shell echo $(CPU_MODEL) | tr 'a-z' 'A-Z')
|
||||
CFLAGS += -DCPU_MODEL_$(MODEL)
|
||||
CFLAGS += -DCPU_MODEL_$(call uppercase_and_underscore,$(CPU_MODEL))
|
||||
|
||||
export UNDEF += $(BINDIR)/msp430_common/startup.o
|
||||
export USEMODULE += msp430_common msp430_common_periph msp430_malloc
|
||||
|
@ -1,5 +1,4 @@
|
||||
FAM = $(shell echo $(CPU_FAM) | tr 'a-z-' 'A-Z_')
|
||||
CFLAGS += -DCPU_FAM_$(FAM)
|
||||
CFLAGS += -DCPU_FAM_$(call uppercase_and_underscore,$(CPU_FAM))
|
||||
|
||||
# include nrf5x common periph drivers
|
||||
USEMODULE += nrf5x_common_periph
|
||||
|
@ -1,5 +1,5 @@
|
||||
# Define the CPU family so we can differentiate between them in the code
|
||||
CFLAGS += -DCPU_FAM_$(shell echo $(CPU_FAM) | tr 'a-z-' 'A-Z_')
|
||||
CFLAGS += -DCPU_FAM_$(call uppercase_and_underscore,$(CPU_FAM))
|
||||
|
||||
# Set ROM and RAM lengths according to CPU model
|
||||
ifneq (,$(filter samd21g18a samd21j18a saml21j18b saml21j18a samr21e18a \
|
||||
|
@ -1,5 +1,5 @@
|
||||
# Define the CPU family so we can differentiate between them in the code
|
||||
CFLAGS += -DCPU_FAM_$(shell echo $(CPU_FAM) | tr 'a-z-' 'A-Z_')
|
||||
CFLAGS += -DCPU_FAM_$(call uppercase_and_underscore,$(CPU_FAM))
|
||||
|
||||
# this CPU implementation doesn't use CMSIS initialization
|
||||
CFLAGS += -DDONT_USE_CMSIS_INIT
|
||||
|
@ -1,5 +1,4 @@
|
||||
FAM = $(shell echo $(CPU_FAM) | tr 'a-z-' 'A-Z_')
|
||||
CFLAGS += -DCPU_FAM_$(FAM)
|
||||
CFLAGS += -DCPU_FAM_$(call uppercase_and_underscore,$(CPU_FAM))
|
||||
|
||||
# All stm32 families provide pm support
|
||||
USEMODULE += pm_layered
|
||||
|
Loading…
Reference in New Issue
Block a user