1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/sam0: factorize dependencies in Makefile.dep

This commit is contained in:
Alexandre Abadie 2019-12-07 16:47:11 +01:00
parent a32c1074ad
commit 925445d0ff
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405
6 changed files with 6 additions and 11 deletions

View File

@ -1,3 +1,9 @@
ifneq (,$(filter periph_uart_nonblocking,$(USEMODULE)))
USEMODULE += tsrb
endif
# All SAM0 based CPUs provide PM
USEMODULE += pm_layered
# include sam0 common periph drivers
USEMODULE += sam0_common_periph

View File

@ -31,7 +31,4 @@ LINKER_SCRIPT ?= cortexm.ld
# define sam0 specific pseudomodules
PSEUDOMODULES += sam0_periph_uart_hw_fc
# include sam0 common periph drivers
USEMODULE += sam0_common_periph
INCLUDES += -I$(RIOTCPU)/sam0_common/include

View File

@ -1,7 +1,5 @@
CPU_ARCH = cortex-m0plus
CPU_FAM = samd21
USEMODULE += pm_layered
include $(RIOTCPU)/sam0_common/Makefile.include
include $(RIOTMAKE)/arch/cortexm.inc.mk

View File

@ -6,8 +6,6 @@ CPU_FAM = samd5x
# flash cannot be divided by two slots while staying FLASHPAGE_SIZE aligned.
RIOTBOOT_LEN ?= 0x4000
USEMODULE += pm_layered
BACKUP_RAM_ADDR = 0x47000000
BACKUP_RAM_LEN = 0x2000

View File

@ -1,6 +1,4 @@
CPU_ARCH = cortex-m23
USEMODULE += pm_layered
include $(RIOTCPU)/sam0_common/Makefile.include
include $(RIOTMAKE)/arch/cortexm.inc.mk

View File

@ -1,8 +1,6 @@
CPU_ARCH = cortex-m0plus
CPU_FAM = saml21
USEMODULE += pm_layered
ifneq (,$(filter saml21j18b saml21j18a samr30g18a samr34j18b,$(CPU_MODEL)))
BACKUP_RAM_ADDR = 0x30000000
BACKUP_RAM_LEN = 0x2000