Skip to content
This repository was archived by the owner on May 16, 2025. It is now read-only.

Make more elements optional, support other field definition types#2

Merged
emesare merged 3 commits into
Vector35:masterfrom
ehntoo:add-other-bit-field-options
Sep 14, 2024
Merged

Make more elements optional, support other field definition types#2
emesare merged 3 commits into
Vector35:masterfrom
ehntoo:add-other-bit-field-options

Conversation

@ehntoo
Copy link
Copy Markdown
Contributor

@ehntoo ehntoo commented Sep 14, 2024

The SVD spec says a number of fields that are currently accessed by the plugin are optional, and this causes issues with real SVDs in the wild. This PR handles some of them that I'm hitting.

This PR also adds support for the bitRangeOffsetWidthStyle and bitRangePattern field definition types:
https://arm-software.github.io/CMSIS_5/SVD/html/elem_registers.html#:~:text=0..1-,Choice%20of,0..1,-access

You can find some example SVDs exhibiting these issues here:
https://github.com/ch32-rs/ch32-rs/blob/main/svd/fixed/ch59x.svd
https://github.com/ch32-rs/ch32-rs/blob/main/svd/fixed/ch32v30x.svd

@emesare emesare self-requested a review September 14, 2024 18:59
@emesare emesare self-assigned this Sep 14, 2024
@emesare emesare merged commit 0c8dcc8 into Vector35:master Sep 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants