Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeleteEnumVariants transform #56

Open
i509VCB opened this issue Jan 30, 2025 · 0 comments · May be fixed by #58
Open

DeleteEnumVariants transform #56

i509VCB opened this issue Jan 30, 2025 · 0 comments · May be fixed by #58

Comments

@i509VCB
Copy link
Contributor

i509VCB commented Jan 30, 2025

The MSPM0 SVDs unfortunately contain enums with variants that exist on some parts, but are then not valid on other parts. I would like to delete these enum variants in a transform for some parts.

An example:

enum/SYSCTL_SYSOSCCFG_FREQ:
  bit_size: 2
  variants:
  - name: SYSOSCBASE
    value: 0
  - name: SYSOSC4M
    value: 1
  - name: SYSOSCUSER
    value: 2
  # This variant does not actually exist on the MSPM0C110x, but does exist on others
  - name: SYSOSCTURBO
    value: 3

I would think the transform to delete variants would be similar in style to !DeleteFields transform, kind of like this:

- !DeleteEnumVariants
  enums: SYSCTL_SYSOSCCFG_FREQ
  from: SYSOSCTURBO
@i509VCB i509VCB linked a pull request Jan 30, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant