-
Notifications
You must be signed in to change notification settings - Fork 124
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
base: main
Are you sure you want to change the base?
Conversation
Peripheral and field tests with DimElementGroup failing now Removed one invalid test with register DimElementGroup
Update existing tests to pass
- added - formatting changes - removed debug sqlite db generation
There was a problem hiding this 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.
Fixed typo in the error name. Simplified dim null check
@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. |
DimElementGroup support for peripheral, register and field types (without
dimName
)New features:
%s
parsing) for DimElementGroupregister
andfield
types. register dim description field dim description%s
can be anywhere in string,dimIndex
must be defined.[%s]
parsing) forDimElement
groupperipheral
andregister
peripheral dim description[%s]
must be at the end of the stringChanged implementation:
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
dimIndex