2020-10-02 20:06:43 +02:00
|
|
|
ifneq (,$(filter samd10%,$(CPU_MODEL)))
|
|
|
|
CFLAGS += -DCPU_SAMD10
|
|
|
|
endif
|
2020-06-17 16:38:52 +02:00
|
|
|
ifneq (,$(filter samd20%b,$(CPU_MODEL)))
|
|
|
|
CFLAGS += -DCPU_SAMD20B
|
|
|
|
else ifneq (,$(filter samd20%,$(CPU_MODEL)))
|
|
|
|
CFLAGS += -DCPU_SAMD20
|
|
|
|
endif
|
2020-02-06 19:52:05 +01:00
|
|
|
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
|
|
|
|
|
2020-08-21 12:06:42 +02:00
|
|
|
CFLAGS += -DCPU_COMMON_SAMD21
|
|
|
|
|
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 SAMD21
|
|
|
|
PROGRAMMERS_SUPPORTED += bmp
|