~ruther/qmk_firmware

b8ffaa63310ec7cc29de0aaa562457d87e50f837 — Stefan Kerkmann 3 years ago 828a1db
Copy RP2040 vector table to RAM on startup (#18424)

...this reduces possible latency when invoking interrupt handlers by
mitigating XIP cache misses which are not existent when running code from
RAM.
1 files changed, 2 insertions(+), 1 deletions(-)

M platforms/chibios/vendors/RP/RP2040.mk
M platforms/chibios/vendors/RP/RP2040.mk => platforms/chibios/vendors/RP/RP2040.mk +2 -1
@@ 11,7 11,8 @@ endif
# Raspberry Pi Pico SDK Support
##############################################################################
ADEFS  += -DCRT0_VTOR_INIT=1 \
		  -DCRT0_EXTRA_CORES_NUMBER=0
		  -DCRT0_EXTRA_CORES_NUMBER=0 \
          -DCRT0_INIT_VECTORS=1

CFLAGS += -DPICO_NO_FPGA_CHECK \
          -DNDEBUG