embedded-hal
embedded-hal copied to clipboard
A Hardware Abstraction Layer (HAL) for embedded systems
Some concerns have been raised regarding the error handling in `spi::blocking::ExclusiveDevice`. I am not sure what the problem was, though. I think @GrantM11235 was the one to raise the concerns...
I was recently porting an I2C controller device to `1.0.0-alpha.7` which forced me to implement `transaction` and `transaction_iter` for the first time. I initially tried to implement `transaction` as follows:...
The IoPin trait - added in #29, seems like it would be impractical to implement in a system with multiple input / output pin types. The STM32 HALs that I'm...
Part of https://github.com/rust-embedded/wg/issues/383 Settled blockers: * ~#169~ (closed for later consideration) * #163 * ~#172~ * ~[[RFC] digital::v3 interface](https://github.com/rust-embedded/wg/pull/393) + moving to a single interface~ * #234 * #98 PR:...
All traits with unconstrained associated types have been removed as we prepare the 1.0.0 release. We are aware that this will be problematic in the short term but agreed it...
The input/output pin trait available on the 0.2.x versions have been removed ahead of the 1.0.0 release. See: #357 This issue servers as a tracking issue until we add them...
Pull request #67 adds a `cancel` method that returns a `Result`. We ended up discussing timer error handling in general there, but decided to move further discussion to a follow-up...
Following up from https://github.com/rust-embedded/embedded-hal/issues/177#issuecomment-1162212193, this PR splits `nb` and `can` traits to separate crates. I propose keeping these crates (and `embedded-hal-async`) separate forever. (instead of merging EHA into EH when...
This PR refactors the I2C traits into Bus and Device, similar to what was done to SPI a while back. This is actually much simpler than SPI thanks to not...
Hi I have some questions regarding this project. Is this a "write once run everywhere" project? That means that if I write code for the Arduino, the exact same code...