2022-02-21 15:14:35 +01:00
|
|
|
include $(RIOTCPU)/sam0_common/sam0_info.mk
|
|
|
|
|
2020-02-06 19:52:05 +01:00
|
|
|
ifneq (,$(filter saml21%a,$(CPU_MODEL)))
|
|
|
|
CFLAGS += -DCPU_SAML21A
|
|
|
|
endif
|
|
|
|
ifneq (,$(filter saml21%b,$(CPU_MODEL)))
|
|
|
|
CFLAGS += -DCPU_SAML21B
|
|
|
|
endif
|
|
|
|
ifneq (,$(filter samr30%,$(CPU_MODEL)))
|
|
|
|
CFLAGS += -DCPU_SAMR30
|
|
|
|
endif
|
|
|
|
ifneq (,$(filter samr34%,$(CPU_MODEL)))
|
|
|
|
CFLAGS += -DCPU_SAMR34
|
|
|
|
endif
|
|
|
|
|
2020-08-21 12:48:35 +02:00
|
|
|
CFLAGS += -DCPU_COMMON_SAML21
|
|
|
|
|
2022-02-21 15:14:35 +01:00
|
|
|
BACKUP_RAM_ADDR = 0x30000000
|
|
|
|
ifeq (18, $(SAM0_DENSITY))
|
|
|
|
BACKUP_RAM_LEN = 0x2000 # 8k
|
|
|
|
else ifeq (17, $(SAM0_DENSITY))
|
|
|
|
BACKUP_RAM_LEN = 0x2000 # 8k
|
|
|
|
else ifeq (16, $(SAM0_DENSITY))
|
|
|
|
BACKUP_RAM_LEN = 0x1000 # 4k
|
|
|
|
else ifeq (15, $(SAM0_DENSITY))
|
|
|
|
BACKUP_RAM_LEN = 0x800 # 2k
|
2019-05-08 13:27:43 +02:00
|
|
|
endif
|
|
|
|
|
2016-12-15 11:45:53 +01:00
|
|
|
include $(RIOTCPU)/sam0_common/Makefile.include
|
2016-01-27 10:47:12 +01:00
|
|
|
include $(RIOTMAKE)/arch/cortexm.inc.mk
|
2024-11-21 16:36:59 +01:00
|
|
|
|
|
|
|
# The Black Magic Probe has tested to work fine on SAML21
|
|
|
|
PROGRAMMERS_SUPPORTED += bmp
|