Skip to content

Commit

Permalink
rp2040_rom_version should be rp2350_rom_version for RP2350; i haven't…
Browse files Browse the repository at this point in the history
… kept rp2040_rom_version... we can look at a future API which is pan-chip, but it doesn't have an obvious home yet
  • Loading branch information
kilograham committed Nov 4, 2024
1 parent 3708588 commit 40274a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rp2350/pico_platform/include/pico/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 40274a5

Please sign in to comment.