-
Notifications
You must be signed in to change notification settings - Fork 213
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 to embedded-hal v1.0.0-alpha.1 #144
Conversation
@@ -105,7 +107,7 @@ impl Timer<SYST> { | |||
{ | |||
syst.set_clock_source(SystClkSource::Core); | |||
let mut timer = Timer { tim: syst, clocks }; | |||
timer.start(timeout); | |||
let _ = timer.try_start(timeout); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure about this way to handle the unused Result, suggestions?
e31ef63
to
f94d109
Compare
You may update to version embedded-hal's |
Thanks @luojia65, I’ll do that. |
Linking to rust-embedded/embedded-hal#177 |
f94d109
to
dd14acc
Compare
dd14acc
to
a1316e8
Compare
I'll close this as it's not updated according to the guidelines for how to support 0.2.x and 1.0.0-alpha: https://github.com/rust-embedded/embedded-hal#adding-support-for-an-embedded-hal--alpha-version-in-a-hal-implementation |
I needed to have the crate updated to use the new embedded-hal traits for the development of the I2S proposal (rust-embedded/embedded-hal#204).
I'm new to the Rust and Rust embedded eco systems and not familiar with how the updates are usually done to all the HAL crates under stm32-rs, but I'll be glad to provide this if helpful. I'll leave it open for comments and further work until embedded-hal has released its next version (1.0?).