Switch to device-driver crate#27
Conversation
a259b2c to
3ef6e66
Compare
3ef6e66 to
af327a0
Compare
Signed-off-by: Felipe Balbi <febalbi@microsoft.com>
Signed-off-by: Felipe Balbi <febalbi@microsoft.com>
Signed-off-by: Felipe Balbi <febalbi@microsoft.com>
Signed-off-by: Felipe Balbi <febalbi@microsoft.com>
af327a0 to
df0c2c6
Compare
Signed-off-by: Felipe Balbi <febalbi@microsoft.com>
Signed-off-by: Felipe Balbi <febalbi@microsoft.com>
Signed-off-by: Felipe Balbi <febalbi@microsoft.com>
deny instead of forbid otherwise we can't ignore them for the auto-generated module. Signed-off-by: Felipe Balbi <febalbi@microsoft.com>
Signed-off-by: Felipe Balbi <febalbi@microsoft.com>
Signed-off-by: Felipe Balbi <febalbi@microsoft.com>
Signed-off-by: Felipe Balbi <febalbi@microsoft.com>
Signed-off-by: Felipe Balbi <febalbi@microsoft.com>
|
If anybody has any idea how to tell clippy to ignore the auto-generated module, let me know. |
There was a problem hiding this comment.
Pull Request Overview
This PR migrates the TMP108 driver to use the device-driver crate for code generation, replacing the previous manual register handling implementation. The change consolidates both blocking and async APIs into a single implementation using conditional compilation, and introduces a TOML-based register definition that auto-generates register access code.
Key changes:
- Replaced manual register definitions with auto-generated code from
tmp108.toml - Unified blocking and async implementations using
maybe-async-cfg - Updated MSRV from 1.84 to 1.85 to support Rust edition 2024
Reviewed Changes
Copilot reviewed 10 out of 11 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| tmp108.toml | New TOML file defining TMP108 register layout and fields for code generation |
| src/inner.rs | New auto-generated register access implementation from device-driver crate |
| src/lib.rs | Consolidated driver implementation supporting both blocking and async modes |
| src/registers.rs | Removed manual register definitions (replaced by auto-generated code) |
| src/blocking.rs | Removed separate blocking API (unified into lib.rs) |
| src/asynchronous.rs | Removed separate async API (unified into lib.rs) |
| Cargo.toml | Updated dependencies, MSRV, and edition to support new architecture |
| README.md | Updated MSRV documentation from 1.79 to 1.85 |
| .github/workflows/rolling.yml | Updated MSRV in CI configuration |
| .github/workflows/check.yml | Enhanced testing matrix and re-enabled semver checks |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Signed-off-by: Felipe Balbi <febalbi@microsoft.com>
Signed-off-by: Felipe Balbi <febalbi@microsoft.com>
390226b to
073dfeb
Compare
Signed-off-by: Felipe Balbi <febalbi@microsoft.com>
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 10 out of 11 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Felipe Balbi <felipe.balbi@microsoft.com>
ab83260 to
4de662c
Compare
kurtjd
left a comment
There was a problem hiding this comment.
Not sure why it's getting stuck on that ubuntu / 1.84 job though
🧟 zombie process, just in time for halloween 🎃 |
Only temperatures are swapped. Signed-off-by: Felipe Balbi <febalbi@microsoft.com>
No description provided.