1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/rpx0xx/Makefile.include
2023-05-23 08:49:37 +02:00

26 lines
706 B
Makefile

PICO_DEBUG ?=
ROM_LEN ?= 2097152 # = 2 MiB used in the RPi Pico
ROM_OFFSET := 256 # bootloader size
RAM_LEN := 270336 # = 264 KiB
ROM_START_ADDR := 0x10000000
RAM_START_ADDR := 0x20000000
CFLAGS += -D$(CPU_MODEL)
CFLAGS += -DROM_START_ADDR=$(ROM_START_ADDR)
CFLAGS += -DRAM_START_ADDR=$(RAM_START_ADDR)
INCLUDES += -I$(RIOTCPU)/rpx0xx/include
VECTORS_O ?= $(BINDIR)/cpu/vectors.o
VECTORS_FILE := $(RIOTCPU)/rpx0xx/vectors.c
PROGRAMMERS_SUPPORTED := elf2uf2 openocd jlink
PROGRAMMER ?= elf2uf2
OPENOCD_DEBUG_ADAPTER ?= dap
include $(RIOTMAKE)/arch/cortexm.inc.mk
ifneq (,$(filter periph_pio pio_%,$(USEMODULE)))
include $(RIOTMAKE)/tools/pioasm.inc.mk
endif