-
Notifications
You must be signed in to change notification settings - Fork 35
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
ESP32 I2C: Rename ACK_ERR to NACK #292
Conversation
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.
Thanks, LGTM!
W8, it does clean up things, but then there's no consistency with TRM nor |
Indeed; i think we agreed that we accept this tradeoff. The documentation still reads as "The masked interrupt status for ack_err_int interrupt" so I think it's obvious wihch bit the |
Sorry, but I don't really agree with the statement that it's not that big price to pay 😅. I mean, after some amount of such "simplifications" it potentially might (and it will) become really expensive to find necessary field/register in terms of time. That is why I think that a small As an alternative, we might add something like "PREVIOUS NAME:" or "ORIGINAL NAME:" for such fields/registers just so it's possible to find that at least somehow fast |
@playfulFence I do agree with the principal of your message, that we should be careful when renaming to only do it where it makes sense. I see |
Regarding this, were you suggesting this in a doc comment or have two methods pointing to the same register? |
@MabezDev For some reason I feel that having two methods pointing to the same register might be even more frustrating |
Maybe we could solve this at the svdtools level, so it could generate a |
Allows cleaning up things like https://github.com/esp-rs/esp-hal/blob/main/esp-hal/src/i2c.rs#L650-L653