You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to write test programs that are as portable as possible across hardware platforms. It would be really helpful to add a compile flag for the board name (which is really a board family), like -DARDUINO_NUCLEO_32.
As a concrete example, Nucleo-32 boards do not have a user button, Nucleo-64 boards have an active low user button, and Nucleo-144 boards have an active high user button. I have no way to figure out which family e.g. NUCLEO_F767ZI is in.
Activity
fpistm commentedon May 22, 2026
Hi @pmunts
Feel free to provide a PR.
[-]Request a compile flag for board name[/-][+]Request a compile flag for board family[/+]fpistm commentedon May 22, 2026
Hi @pmunts
I've made a PR, let me know if it is OK for you?
pmunts commentedon May 23, 2026
Looks great. I downloaded boards.txt and platform.txt and tried it out for Nucleo_32, Nucleo_64, and Nucleo_144.
feat: add compile flag for board family