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:
parent
a32c1074ad
commit
925445d0ff
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -1,6 +1,4 @@
|
||||
CPU_ARCH = cortex-m23
|
||||
|
||||
USEMODULE += pm_layered
|
||||
|
||||
include $(RIOTCPU)/sam0_common/Makefile.include
|
||||
include $(RIOTMAKE)/arch/cortexm.inc.mk
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user