Skip to content
This repository was archived by the owner on Aug 9, 2022. It is now read-only.

Overhaul of GPIO module & adjusted Serial module accordingly. #36

Merged
merged 35 commits into from
Jun 24, 2020

Conversation

arjanmels
Copy link
Contributor

@arjanmels arjanmels commented Jun 14, 2020

  • Renamed GPIO and RTC_IO register field to strip common prefix.
  • Fixed bugs in GPIO
  • Simplified GPIO code

TODO:

  • Add support for routing
  • Add support for additional configuration (e.g. pullup/down, drive strength, etc.)

This depends on esp-rs/esp32#34 and it builds on #34.

Addresses issue #35 and #19

@arjanmels arjanmels mentioned this pull request Jun 14, 2020
6 tasks
@arjanmels
Copy link
Contributor Author

Changed this to WIP so I can include more changes in one go.

@arjanmels arjanmels changed the title Renamed GPIO and RTC_IO register field to strip common prefix. Overhaul of GPIO module & adjusted Serial module accordingly. Jun 22, 2020
@arjanmels arjanmels force-pushed the feature-gpio-rename branch from 6adcf06 to d014035 Compare June 22, 2020 15:24
@arjanmels
Copy link
Contributor Author

arjanmels commented Jun 22, 2020

@MabezDev and @Chocol4te I think this is in pretty good shape now. Your review and feedback is most welcome. (Todo's are intterrupt handling and perhaps some more functionality on the RTC_MUX.)

(I also updated the i2c to teh latest version: https://github.com/arjanmels/esp32-hal/tree/feature-i2c-am

Copy link
Contributor

@fmckeogh fmckeogh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some really small comment/formatting changes suggested, looks really solid and can't think of anything to change in the implementation!

@arjanmels
Copy link
Contributor Author

Just some really small comment/formatting changes suggested, looks really solid and can't think of anything to change in the implementation!

Thanks, always nice to put the dots on the i's and cross the t's. :-)

@arjanmels
Copy link
Contributor Author

In principle, I think this is ready for merge: esp-rs/esp32#34 has been merged as well as #34. Also the problems @Chocol4te was having are solved (#26 (comment)).

However, I could still add interrupt support and more extensive support for the RTC IO mux. I will be working on this over the next day/weekend; I can merge it in this PR or can make a new one.

@fmckeogh
Copy link
Contributor

@arjanmels imho it might be slightly easier to merge this and have separate PRs for the additional functionality, but I’m also happy to just rebase against this branch when I finish up the I2C work :)

Copy link
Member

@MabezDev MabezDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work @arjanmels ! I think it's best to merge this as is, as if the diffs get much bigger I'll need 1 hour to read through ;), but in all seriousness this is a well needed change! I also believe this approach is novel among Rust HAL designs so it will be interesting to see how it plays out!

@MabezDev MabezDev merged commit 1d57619 into esp-rs:master Jun 24, 2020
@MabezDev MabezDev mentioned this pull request Jun 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants