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

Overly verbose register field names #174

Closed
bugadani opened this issue Dec 8, 2023 · 1 comment
Closed

Overly verbose register field names #174

bugadani opened this issue Dec 8, 2023 · 1 comment
Assignees
Labels
fields Something is wrong with one or more fields

Comments

@bugadani
Copy link

bugadani commented Dec 8, 2023

For example: https://docs.rs/esp32c6/latest/esp32c6/lp_io/pin2/type.W.html

All the register fields are prefixed with a redundant lp_gpio2 which makes the PAC a bit annoying to read and use. This comes from the base SVD, though, so I'm not sure if this is something that can be easily fixed.

@jessebraham jessebraham self-assigned this Dec 8, 2023
@jessebraham jessebraham added the fields Something is wrong with one or more fields label Dec 13, 2023
@jessebraham
Copy link
Member

I've added a workaround in our SVD generator to handle these field names. They unfortunately are not super consistent, and don't use the same naming conventions that were expected, so needed to be handled as a special case.

I will leave this issue open until I have published a new SVD for the ESP32-C6 and updated it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fields Something is wrong with one or more fields
Projects
Archived in project
Development

No branches or pull requests

2 participants