From 67e788f0270f8a8c26a04f4a9547d919c731ec22 Mon Sep 17 00:00:00 2001 From: William Vinnicombe Date: Wed, 21 Aug 2024 10:49:10 +0100 Subject: [PATCH] Fix build errors on RP2040 --- src/rp2_common/pico_bootrom/bootrom.c | 2 ++ src/rp2_common/pico_bootrom/include/pico/bootrom.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/rp2_common/pico_bootrom/bootrom.c b/src/rp2_common/pico_bootrom/bootrom.c index 911ce4e85..3d3e27755 100644 --- a/src/rp2_common/pico_bootrom/bootrom.c +++ b/src/rp2_common/pico_bootrom/bootrom.c @@ -7,7 +7,9 @@ #include "pico/bootrom.h" #include "boot/picoboot.h" #include "boot/picobin.h" +#if !PICO_RP2040 #include "hardware/rcp.h" +#endif /// \tag::table_lookup[] diff --git a/src/rp2_common/pico_bootrom/include/pico/bootrom.h b/src/rp2_common/pico_bootrom/include/pico/bootrom.h index 19b3aafef..14b0d297b 100644 --- a/src/rp2_common/pico_bootrom/include/pico/bootrom.h +++ b/src/rp2_common/pico_bootrom/include/pico/bootrom.h @@ -20,7 +20,9 @@ #ifndef __ASSEMBLER__ #include #include "pico/bootrom/lock.h" +#if !PICO_RP2040 #include "pico/bootrom_structs.h" +#endif // ROM FUNCTION SIGNATURES #if PICO_RP2040