Skip to content

Possible regression: register array inference #938

@jbeaurivage

Description

@jbeaurivage

Using svd2rust 0.36.1, some registers which were previously inferred as arrays now explicitly list all registers.

Ie, from

pmux1_0: [Pmux1_; 16],
...

to

pmux1_0: Pmux1_0,
pmux1_1: Pmux1_1,
pmux1_2: Pmux1_2,
...

Since this issue does not appear in svd2rust 0.36.0, I suspect #930 to be the culprit.
For example, this SVD is affected -- specifically, the PMUX0 and PINCFG0 fields of the PORT peripheral.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions