-
Notifications
You must be signed in to change notification settings - Fork 75
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
Update embedded hal to 1.0.0 #106
Update embedded hal to 1.0.0 #106
Conversation
@AnyTimeTraveler would you mind looking at the pipeline failures? |
According to the docs of There's a couple possible ways to solve this. The one that would mean the least required changes to this library and I think should work well would be to encourage the use of |
Yes, I will. I'm currently still planning on testing this with my ESP32C6 to make sure that the update didn't break anything. |
@fu5ha I looked at complying with this new way of doing transactions and have found them incompatible with how the crate uses the SPI CS pin at the moment. |
I've opened AnyTimeTraveler#1 which makes a public |
Thank you very much! I will try to find time to work on this tonight. |
# Conflicts: # examples/readme_test.rs # src/sdcard/mod.rs
Another solution is to require two SpiDevice objects. One which actually selects the SD card, and one which does not. You would just send out dummy bytes to the second one to get the SD card into SPI mode. |
Talking on the matrix channel, I'm told the correct solution is to take exclusive ownership of the |
@thejpster I have a pretty good idea how to implement the proper solution. What matrix channel were you talking about? That sounds useful to join. |
Also it has been suggested that once we've worked out how to do this, the Embedded-HAL v1.0 docs will be updated to point here as an example. |
Have you had a chance to look at this? I think we're expecting Embedded HAL 1.0 to drop on 2023-12-28, with Rust 1.75. |
Sorry, I wish I had more time at the moment, but I had to put this on hold. |
Any further works on this pull request? embedded-hal 1.0.0 (no -rc.1!) is released. If you don't feel like having enough time working on this, I can take forward (by sending PRs to your repo, or other methods); our team will test it on RustSBI and RISC-V firmware ecosystem when moving on. @AnyTimeTraveler |
Signed-off-by: jakezhu9 <zjx1319@hust.edu.cn>
@luojia65 and me have followed your work to update embedded-hal dependency to version 1.0.0. We sent a pull request to your repository: AnyTimeTraveler#2. Please have a look, hope this helps :) |
lib: update dependency embedded-hal to 1.0.0
Not from me, but I see your PR and will check it out tonight. |
Just tested locally and this should be ready to merge. |
This PR should be good to go now. |
If we put it in a function we need much less boiler plate to make it compile.
Thank you! |
e7ef46f
This is based on thejpster's Pull Request #103.
The changes are suprisingly trivial.
Except for one occasion, only where-clauses needed to be adjusted.
I need to work with an ESP32C6, which has already updated to this version in a feature gate.