mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
f7046f83fb
Rename 'cpu/efm32/families/efr32mg1p' module to 'cpu_efr32mg1p' to don't conflict with 'cpu'. Also required to set the path to vectors.o as its not provided by cpu.
41 lines
1.0 KiB
Makefile
41 lines
1.0 KiB
Makefile
include $(RIOTCPU)/efm32/efm32-info.mk
|
|
|
|
export CPU_ARCH = $(EFM32_ARCHITECTURE)
|
|
export CPU_FAM = $(EFM32_FAMILY)
|
|
|
|
# the em_device.h header requires a global define with the cpu model
|
|
export CFLAGS += -D$(shell echo $(CPU_MODEL) | tr 'a-z' 'A-Z')
|
|
|
|
# include Gecko SDK package
|
|
USEPKG += gecko_sdk
|
|
|
|
# CMSIS-DSP is needed for arm_math.h on Cortex-M0+ architectures
|
|
ifeq ($(CPU_ARCH),cortex-m0plus)
|
|
USEPKG += cmsis-dsp
|
|
endif
|
|
|
|
# include CPU family module
|
|
USEMODULE += cpu_$(EFM32_FAMILY)
|
|
|
|
# vectors.o is provided by 'cpu_$(EFM32_FAMILY)' and not by 'cpu'
|
|
VECTORS_O := $(BINDIR)/cpu_$(EFM32_FAMILY)/vectors.o
|
|
|
|
# include common periph module
|
|
USEMODULE += periph_common
|
|
|
|
# include layered power management
|
|
USEMODULE += pm_layered
|
|
|
|
# include vendor device headers
|
|
INCLUDES += -I$(RIOTCPU)/efm32/families/$(EFM32_FAMILY)/include/vendor
|
|
|
|
# include cortexm_common
|
|
LINKER_SCRIPT = cortexm.ld
|
|
|
|
ROM_START_ADDR = $(EFM32_FLASH_START)
|
|
ROM_LEN = $(EFM32_FLASH_SIZE)
|
|
RAM_START_ADDR = $(EFM32_SRAM_START)
|
|
RAM_LEN = $(EFM32_SRAM_SIZE)
|
|
|
|
include $(RIOTMAKE)/arch/cortexm.inc.mk
|