Skip to content

Commit 0662be4

Browse files
committed
cpu/rp2350_common: create shared folder for RISCV & ARM
1 parent 64bd33e commit 0662be4

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

cpu/rp2350_arm/Makefile.include

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# CPU and architecture specific flags
2+
CFLAGS += -D$(CPU_MODEL)
3+
CFLAGS += -DROM_START_ADDR=$(ROM_START_ADDR)
4+
CFLAGS += -DRAM_START_ADDR=$(RAM_START_ADDR)
5+
6+
# Linker flags
7+
LINKFLAGS += -mcpu=$(CPU_ARCH) -mthumb
8+
LINKFLAGS += -Wl,--gc-sections
9+
LINKFLAGS += -Wl,--start-group -lc -lm -Wl,--end-group
10+
11+
# Vector table configuration
12+
VECTORS_O ?= $(BINDIR)/cpu/vectors.o
13+
VECTORS_FILE := $(RIOTCPU)/rp2350_common/vectors.c
14+
15+
include $(RIOTCPU)/rp2350_common/Makefile.include
16+
17+
# Include the base Cortex-M makefile
18+
include $(RIOTMAKE)/arch/cortexm.inc.mk

cpu/rp2350_common/Makefile.include

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
CFLAGS += -Wno-pedantic
2-
31
ROM_LEN ?= 2097152 # = 2 MiB used in the RPi Pico
42
ROM_OFFSET := 0 # bootloader size
53
RAM_LEN := 0x82000 # 520kB = 532479 used in the RPi Pico 2350

cpu/rp2350_common/cpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @ingroup cpu_rp2350
99
* @{
1010
*
11-
* @file cpu.c
11+
* @file
1212
* @brief Implementation of the CPU initialization for RP2350
1313
*
1414
* @author Tom Hert <[email protected]>

0 commit comments

Comments
 (0)