-
Notifications
You must be signed in to change notification settings - Fork 243
i2C register definitions for stm32g4xx #510
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
Conversation
Thanks for this PR! Your new descriptions look generally good with a few style points:
However, when I checked, it looks like the existing file
The module gets named after whichever is the 'base' peripheral from which the others derive, so in this case I2C1. There's no way in svd2rust to tell it what name to use for the module without also renaming the peripheral (which we can't do, since it needs to be I2C1 since there's also I2C2, 3, etc). |
I have no idea how I missed this. I really thought I checked. I'll remember the style guide and other advice for next time and consider this a learning exercise. Thanks you for the explanation! I removed the g4 file and updated the g4 devices to use the v2 file. |
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.
Great, thank you again!
bors merge
I added register definitions for the I2C peripheral for the g4 series. First time I'm doing this, so feedback is much appreciated.
I noticed the module is named i2c1, is there a way to change this to i2c, without the 1 at the end? Or is there a reason it's there?