Skip to content
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

Changes from #93, cleaned and rebased on master #102

Merged
merged 3 commits into from
Nov 25, 2020

Conversation

Rahix
Copy link
Owner

@Rahix Rahix commented Nov 15, 2020

Hey @ToddG,

I've isolated the separate changes from your PR (#93) now. I have taken a bit of liberty in doing so and did some additional changes to make everything work well (for the most part minor fixes and deprecation aliases to ease updating). Please take a look at the individual commits whether they reflect your original intent and whether it is okay for you to have your name tagged on them in this form :)

If everything is alright for you, I'd merge these as they are. Then, the only remaining change in your PR should be the actual I2C slave driver. Please rebase your work ontop of master after this PR here is merged such that only the slave-driver changes remain in there.

@Rahix Rahix added the hal-api API design for the different components of avr-hal label Nov 15, 2020
@Rahix
Copy link
Owner Author

Rahix commented Nov 18, 2020

@ToddG, can you quickly give me an ok/not ok for this PR? I'd like to get those changes in so we can then properly look at your I2C slave driver. :)

@Rahix Rahix mentioned this pull request Nov 25, 2020
Copy link
Contributor

@ToddG ToddG left a 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.

ToddG and others added 3 commits November 25, 2020 18:46
Instead of having each chip HAL define the register and field names, we
have decided to fix these on PAC level such that all chips use the same
names.  Thus, simplify the `impl_twi_i2c!{}` macro and name registers
directly instead of a large amount of macro tokens.

Co-authored-by: Rahix <rahix@rahix.de>
All constructors for the I2C master driver do the same thing for
configuring the bus speed.  Split this out into a common method instead
of duplicating the code.

Co-authored-by: toddg <toddg@zwrob.com>
Signed-off-by: Rahix <rahix@rahix.de>
In preparation for a future addition of an I2C slave driver, rename the
I2C master driver to `I2cMaster`.  To ease migration, add a type-alias
for the old name which is marked as deprecated.  This alias will be
removed at a later time when most users have switched to the new name.

Co-authored-by: toddg <toddg@zwrob.com>
Signed-off-by: Rahix <rahix@rahix.de>
@Rahix Rahix force-pushed the toddg-i2c-changes-rebased branch from 0735300 to f895af8 Compare November 25, 2020 17:47
@Rahix Rahix merged commit f895af8 into master Nov 25, 2020
@Rahix
Copy link
Owner Author

Rahix commented Nov 25, 2020

Thanks @ToddG!

@Rahix Rahix deleted the toddg-i2c-changes-rebased branch December 11, 2020 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hal-api API design for the different components of avr-hal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants