-
Notifications
You must be signed in to change notification settings - Fork 29
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
Panic in field array dim calculation #161
Comments
I know about this issue, but I don't know good way to fix it. |
#162 should help for your specific situation, but this is just a patch. |
Although this can break other use cases. |
Yes, works in this case EXINT:
INTEN:
_array:
INTEN?,INTEN1[0-7]:
description: "Interrupt enable or disable on line %s" <fields>
<field>
<dim>18</dim>
<dimIncrement>0x1</dimIncrement>
<dimIndex>0-17</dimIndex>
<name>INTEN%s</name>
<description>Interrupt enable or disable on line %s</description> But don't work there (I don't know why someone would write such a weird patch) EXINT:
INTEN:
_array:
INTEN1[0-7],INTEN?:
description: "Interrupt enable or disable on line %s" <fields>
<field>
<dim>18</dim>
<dimIncrement>0x1</dimIncrement>
<dimIndex>,,,,,,,,,,0,1,2,3,4,5,6,7</dimIndex>
<name>INTEN1%s</name>
<description>Interrupt enable or disable on line %s</description> |
I don't have better ideas. P.S. We need someone to improve YAML Format as patch format was much extended since last docs edition. Do you have a wish to help? I'm bad in doc writing. (#5) |
As far as I know, the functionality of rust and python is now slightly different. Should this be reflected in the documentation or should the new syntax be introduced into Python first? |
Token boundaries are calculated without comma split.
svdtools/src/patch/register.rs
Line 361 in 27cf2b1
svdtools/src/patch/register.rs
Line 383 in 27cf2b1
The text was updated successfully, but these errors were encountered: