From 40274a57b63663598415b1fef093676385a1eb5a Mon Sep 17 00:00:00 2001 From: graham sanderson Date: Mon, 4 Nov 2024 13:01:50 -0600 Subject: [PATCH] rp2040_rom_version should be rp2350_rom_version for RP2350; i haven't kept rp2040_rom_version... we can look at a future API which is pan-chip, but it doesn't have an obvious home yet --- src/rp2350/pico_platform/include/pico/platform.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rp2350/pico_platform/include/pico/platform.h b/src/rp2350/pico_platform/include/pico/platform.h index bfc4fabe6..087edaaed 100644 --- a/src/rp2350/pico_platform/include/pico/platform.h +++ b/src/rp2350/pico_platform/include/pico/platform.h @@ -229,11 +229,11 @@ static inline uint8_t rp2040_chip_version(void) { return 2; } -/*! \brief Returns the RP2040 rom version number +/*! \brief Returns the RP2350 rom version number * \ingroup pico_platform - * @return the RP2040 rom version number (1 for RP2040-B0, 2 for RP2040-B1, 3 for RP2040-B2) + * @return the RP2350 rom version number (2 for RP2350-A2) */ -static inline uint8_t rp2040_rom_version(void) { +static inline uint8_t rp2350_rom_version(void) { GCC_Pragma("GCC diagnostic push") GCC_Pragma("GCC diagnostic ignored \"-Warray-bounds\"") return *(uint8_t*)0x13;