Skip to content

#define PICO_RP2350A 0 to mean RP2350B is confusingΒ #2364

@dhalbert

Description

@dhalbert

Re #2286, #2290, #2359.

While submitting a new board def, I also at first mistakenly put

#define PICO_RP2350B 1   // (wrong)

in the board def, only to stumble upon the issues mentioned above, and that I should have done

#define PICO_RP2350A 0  // means RP2350B

I appreciate that you added a validation check for this.

I did find it non-affordant. If there is ever an RP2350C, then what would happen? (Kind of like RED=0 means BLUE, but then GREEN comes along.) Is it something to clean up in the long run, by allowing PICO_RP2350B, or using some kind of enumeration?

#define PICO_TYPE_RP2040 0x2040  // or just 1, 2, 3, ...
#define PICO_TYPE_RP2350A 0x2350A
#define PICO_TYPE_RP2350B 0x2350B
// #define PICO_TYPE_RP2350C 0x2350C

Then, in a board def:

#define PICO_TYPE PICO_TYPE_RP2350B

Metadata

Metadata

Labels

board settingsdocumentationImprovements or additions to documentationquestionFurther information is requested

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions