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

Embedded hal 1.0.0 #213

Merged

Conversation

sjoerdsimons
Copy link
Contributor

@sjoerdsimons sjoerdsimons commented Jun 24, 2024

Hi! Thank you for helping out with SSD1306 development! Please:

  • Check that you've added documentation to any new methods
  • Rebase from master if you're not already up to date
  • Add or modify an example if there are changes to the public API
  • Add a CHANGELOG.md entry in the Unreleased section under the appropriate heading (Added, Fixed, Changed, etc)
  • Run rustfmt on the project with cargo fmt --all - CI will not pass without this step
  • Check that your branch is up to date with master and that CI is passing once the PR is opened

PR description

This cherry-picks the embedded-hal-1.0.0 update from #207 and combined that with changing the various examples to use embassy-stm32 as the pac provider which implements embedded-hal-1.0 (stm32f1xx-hal does not yet).

@sjoerdsimons
Copy link
Contributor Author

@eldruin any chance for a review :) Fwiw the minor version ofcourse needs to be bumped, unsure if you prefer that in the PR or to do it directly after merging

Copy link
Member

@eldruin eldruin left a comment

Choose a reason for hiding this comment

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

Looks great, thank you!

CHANGELOG.md Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
- run: cargo test --doc --target x86_64-unknown-linux-gnu
toolchain: 1.75
- run: cargo build --lib --target x86_64-unknown-linux-gnu
- run: cargo doc --target x86_64-unknown-linux-gnu
Copy link
Member

Choose a reason for hiding this comment

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

Do the examples not build with Rust 1.75.0? If so, please rename this step "build with MSRV"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Specifically embassy needs 1.79 at the moment; renamed now

CHANGELOG.md Outdated Show resolved Hide resolved
The examples might require newer rust version based on the pac crate
used; So for the MRSV test only build the actual library and
documentation
stmf32f1xx doesn't yet support embedded-hal 1.0. Switch to embassy-stm32
as a pac provider, which can be used in both a sync and async setups.

Unfortunately for blocking i2c support embassy git has to be used rather
then a releaed version. Also for i2c move the expected configuration
from PB8/PB9 to PB6/PB7 to avoid the needed for pin remapping, which
embassy doesn't yet support on stm32f1xx chips
@sjoerdsimons
Copy link
Contributor Author

@eldruin oh one favour; if your merge this can you use a fast-forward/merge commit rather then squashing the lot so the seperated commits are maintained :)

Copy link
Member

@eldruin eldruin 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, thank you for your work!

@eldruin eldruin merged commit 53039a8 into rust-embedded-community:master Jul 3, 2024
11 of 12 checks passed
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