Skip to content

Add support for SVD dimIndex parsing #508

New issue

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

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

Already on GitHub? # to your account

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

zovko
Copy link

@zovko zovko commented Apr 28, 2025

DimElementGroup support for peripheral, register and field types (without dimName)

New features:

Changed implementation:

  • Fields cannot have DimElementGroup array type.
  • elements.dim_increment * 8) != size removed. This is not always true, specifically for list types.

Note: This heavily breaks esp examples, rasperrypi seems to still compile.

Partially solves #220

Still to implement:

  • dimName, displayName
  • CSV parsing for dimIndex

@zovko zovko marked this pull request as ready for review April 30, 2025 22:38
Copy link
Contributor

@mattnite mattnite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, just get the fixes that @Grazfather has suggested in. It looks like this changes the generated code for esp which will need updating, when I have time I could try to add that to the PR for you tomorrow.

For the stm32 CI failure all you need to do is run zig build -Dgenerate in the port/stmicro/stm32 directory and commit the changes.

@zovko
Copy link
Author

zovko commented May 1, 2025

@mattnite The changes do not look good for stm32 now, for example SQR1 is definitely different now. What to do about that specifically? I added the commit here but I believe the stm32 builds will be broken now.

@zovko zovko requested a review from mattnite May 1, 2025 21:46
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants