mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
33195d7965
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
32 lines
785 B
Makefile
32 lines
785 B
Makefile
ifneq (,$(filter samd10%,$(CPU_MODEL)))
|
|
CFLAGS += -DCPU_SAMD10
|
|
endif
|
|
ifneq (,$(filter samd20%b,$(CPU_MODEL)))
|
|
CFLAGS += -DCPU_SAMD20B
|
|
else ifneq (,$(filter samd20%,$(CPU_MODEL)))
|
|
CFLAGS += -DCPU_SAMD20
|
|
endif
|
|
ifneq (,$(filter samd21%a,$(CPU_MODEL)))
|
|
CFLAGS += -DCPU_SAMD21A
|
|
endif
|
|
ifneq (,$(filter samd21%b,$(CPU_MODEL)))
|
|
CFLAGS += -DCPU_SAMD21B
|
|
endif
|
|
ifneq (,$(filter samd21%c,$(CPU_MODEL)))
|
|
CFLAGS += -DCPU_SAMD21C
|
|
endif
|
|
ifneq (,$(filter samd21%d,$(CPU_MODEL)))
|
|
CFLAGS += -DCPU_SAMD21D
|
|
endif
|
|
ifneq (,$(filter samr21%,$(CPU_MODEL)))
|
|
CFLAGS += -DCPU_SAMR21
|
|
endif
|
|
|
|
CFLAGS += -DCPU_COMMON_SAMD21
|
|
|
|
include $(RIOTCPU)/sam0_common/Makefile.include
|
|
include $(RIOTMAKE)/arch/cortexm.inc.mk
|
|
|
|
# The Black Magic Probe has tested to work fine on SAMD21
|
|
PROGRAMMERS_SUPPORTED += bmp
|