1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/samd5x/Makefile.include
Benjamin Valentin bd1953dd80 cpu/sam0_common: use vendor files to dispatch MCU headers
Instead of manually re-creating the files from ASF, just use
the vendor provided dispatch headers and ease the maintainance
burden.
2020-02-06 19:52:05 +01:00

21 lines
576 B
Makefile

CPU_ARCH = cortex-m4f
CPU_FAM = samd5x
ifneq (,$(filter samd51%,$(CPU_MODEL)))
CFLAGS += -DCPU_SAMD51
endif
ifneq (,$(filter same54%,$(CPU_MODEL)))
CFLAGS += -DCPU_SAME54
endif
# Slot size is determined by "((total_flash_size - RIOTBOOT_LEN) / 2)".
# If RIOTBOOT_LEN uses an uneven number of flashpages, the remainder of the
# flash cannot be divided by two slots while staying FLASHPAGE_SIZE aligned.
RIOTBOOT_LEN ?= 0x4000
BACKUP_RAM_ADDR = 0x47000000
BACKUP_RAM_LEN = 0x2000
include $(RIOTCPU)/sam0_common/Makefile.include
include $(RIOTMAKE)/arch/cortexm.inc.mk