-
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
modifiedWriteValues ignored in patches #156
Comments
Yes, I do it like in this example. Why doesn't this patch work? Doesn't this provide an advantage when used with svd2rust? |
How looks your patch? Have you added |
Oh. Thank you. This is not at all the behavior I expected. RLDF:
_read:
NotReached: [0, "Downcounter doesn't reached 0x40"]
Reached: [1, "Downcounter reached 0x40"]
_W0C:
Clear: [0, "Clear flag"] <modifiedWriteValues>zeroToClear</modifiedWriteValues>
<enumeratedValues>
<name>RLDFR</name>
<usage>read</usage>
<enumeratedValue>
<name>NotReached</name>
<description>Downcounter doesn't reached 0x40</description>
<value>0</value>
</enumeratedValue>
<enumeratedValue>
<name>Reached</name>
<description>Downcounter reached 0x40</description>
<value>1</value>
</enumeratedValue>
</enumeratedValues>
<enumeratedValues>
<name>RLDFW</name>
<usage>write</usage>
<enumeratedValue>
<name>Clear</name>
<description>Clear flag</description>
<value>0</value>
</enumeratedValue>
</enumeratedValues> |
|
I get it. In this case, I need W0C. |
Can we close this, or there still an issue? |
I'm not sure. On the one hand, there is a functionality implements this. By the way, it's undocumented #5 . On the other hand, this behavior seems unintuitive. |
Reasonable. Could you make PR? |
#106 added support for modifiedWriteValues but this ignored in patches
The text was updated successfully, but these errors were encountered: