1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/saml21/Makefile.include
Marian Buschsieweke 33195d7965
cpu/sam{d21,d5x,l21}: Claim support for BlackMagic Probe
Using `PROGRAMMER=bmp` has been proven to work reliably at least on
SAMD21, SAMD5x and SAML21.

Since using unsupported programmers is treated as a warning, this change
only reduces the noise in the shell a bit and is not a functional
change.

[1]: https://black-magic.org/supported-targets.html
2024-11-21 17:20:48 +01:00

34 lines
832 B
Makefile

include $(RIOTCPU)/sam0_common/sam0_info.mk
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
CFLAGS += -DCPU_COMMON_SAML21
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
endif
include $(RIOTCPU)/sam0_common/Makefile.include
include $(RIOTMAKE)/arch/cortexm.inc.mk
# The Black Magic Probe has tested to work fine on SAML21
PROGRAMMERS_SUPPORTED += bmp