rust-embedded / rust-embedded/linux-embedded-hal
Improvement of error matching necessary
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 319
- Forks
- 60
- Avg merge
- 12h 31m
- Merged PRs (30d)
- 1
Description
We have merged #71 which did the heavy-lifting for updating this to embedded-hal 1.0.0-alpha.6.
However, currently we are missing the extraction of information from the underlying nix/io errors in the embedded_hal::*::Error implementations so that they can be converted to a meaningful embedded_hal::*::ErrorKind.
At the moment, converting all errors to Other would render all drivers unable to act on things like i2c::NoAcknowledge.
For this one needs to dig a bit into the Linux kernel, and so on, though.
TODO:
- #75
- SPI
- Serial
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting the embedded_hal::::Error implementations and how underlying nix/io errors are exposed. Investigate the Linux kernel error values relevant to SPI and Serial, then ensure those errors map to meaningful embedded_hal::::ErrorKind values instead of Other; #75 is already complete.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- embedded-iot, operating-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100