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

Refactor the spi and spi_slave modules into a common spi module #843

Merged
merged 7 commits into from
Oct 11, 2023

Conversation

jessebraham
Copy link
Member

I've extracted any types which are used by both operational modes into the root spi module, while any mode-specific types and implementations are in their respective modules. Pretty self-explanatory, I think, but let me know if you have any questions/concerns.

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.

LGTM, nice clean up!

@jessebraham jessebraham merged commit f81dc50 into esp-rs:main Oct 11, 2023
@jessebraham jessebraham deleted the fixes/refactor/spi branch October 11, 2023 18:39
@bjoernQ
Copy link
Contributor

bjoernQ commented Oct 12, 2023

I also tested QSPI after this change - everything still works (was expected but better safe than sorry)

MabezDev pushed a commit to MabezDev/esp-hal that referenced this pull request Oct 20, 2023
…esp-rs#843)

* Refactor the `spi` and `spi_slave` modules into a single `spi` module

* Update import paths in examples as needed

* Extract some common types from `spi::master` into the root `spi` module

* Fix imports in examples (again)

* Documentation fixes/improvements

* Remove unnecessary re-exports

* Update `CHANGELOG.md`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants