mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-12-10 07:14:36 +01:00
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
This commit is contained in:
parent
37085889b0
commit
40274a57b6
1 changed files with 3 additions and 3 deletions
|
|
@ -229,11 +229,11 @@ static inline uint8_t rp2040_chip_version(void) {
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*! \brief Returns the RP2040 rom version number
|
/*! \brief Returns the RP2350 rom version number
|
||||||
* \ingroup pico_platform
|
* \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 push")
|
||||||
GCC_Pragma("GCC diagnostic ignored \"-Warray-bounds\"")
|
GCC_Pragma("GCC diagnostic ignored \"-Warray-bounds\"")
|
||||||
return *(uint8_t*)0x13;
|
return *(uint8_t*)0x13;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue