-
Notifications
You must be signed in to change notification settings - Fork 246
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
Implement the embedded-hal
alpha version Traits
#69
Comments
A little over half of these traits have been implemented in #82. |
A couple more SPI traits implemented in #95. |
Additional SPI traits implemented in #101. |
Just a heads up: According to the maintainer of |
Thanks for the update, I am planning on doing that once we get a stable release of |
|
I think If I'm correct, this is probably less optimal than desired. |
I agree, this also means we can't currently reuse the device/bus struct's for async versions because it's possible to hold |
I suspect this will be pretty difficult. I'm not actually sure about details, but if it's possible to use two SpiDevice instances on two RTIC tasks (1 for each), it will be trivially easy to deadlock a firmware - one task waiting for the other to release the Spi bus, without preemption that would make it actually possible. A critical section at least prevents this, though again, I'm not sure if the use case is actually possible or not. |
A number of traits have been removed, which has been reflected in the original comment. I believe that |
The |
It should be possible for these to coexist with the existing
0.2.7
implementations. I have already begun work on this.EDIT: This crate has been broken up into multiple crates, the task list below has been updated to reflect this. Not all new crates are included, they will be added as needed.
embedded-hal@1.0.0-alpha.x
embedded_hal::delay::DelayUs
embedded_hal::digital::InputPin
embedded_hal::digital::OutputPin
embedded_hal::digital::StatefulOutputPin
embedded_hal::digital::ToggleableOutputPin
embedded_hal::i2c::I2c
embedded_hal::pwm::SetDutyCycle
embedded_hal::serial::Write
embedded_hal::spi::SpiBus
embedded_hal::spi::SpiDevice
embedded-hal-nb@1.0.0-alpha.x
embedded_hal::serial::Read
embedded_hal::serial::Write
embedded_hal::spi::FullDuplex
embedded-can@0.4.x
embedded_can::blocking::Can
embedded_can::nb::Can
The text was updated successfully, but these errors were encountered: