Skip to content

Request a compile flag for board family #2976

Description

@pmunts

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status
    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions