Skip to content

Switch to device-driver crate#27

Merged
felipebalbi merged 19 commits intoOpenDevicePartnership:mainfrom
felipebalbi:switch-to-device-driver
Oct 30, 2025
Merged

Switch to device-driver crate#27
felipebalbi merged 19 commits intoOpenDevicePartnership:mainfrom
felipebalbi:switch-to-device-driver

Conversation

@felipebalbi
Copy link
Contributor

No description provided.

@felipebalbi felipebalbi self-assigned this Oct 23, 2025
@felipebalbi felipebalbi added enhancement New feature or request BREAKING CHANGE labels Oct 23, 2025
@felipebalbi felipebalbi force-pushed the switch-to-device-driver branch 2 times, most recently from a259b2c to 3ef6e66 Compare October 23, 2025 20:53
kurtjd
kurtjd previously approved these changes Oct 23, 2025
Felipe Balbi added 4 commits October 23, 2025 15:07
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>
@felipebalbi felipebalbi force-pushed the switch-to-device-driver branch from af327a0 to df0c2c6 Compare October 23, 2025 22:10
Felipe Balbi added 8 commits October 23, 2025 15:12
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>
@felipebalbi felipebalbi marked this pull request as ready for review October 23, 2025 22:23
@felipebalbi felipebalbi requested a review from a team as a code owner October 23, 2025 22:23
@felipebalbi
Copy link
Contributor Author

If anybody has any idea how to tell clippy to ignore the auto-generated module, let me know.

@felipebalbi felipebalbi moved this to In review in Embedded Controller Oct 23, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Felipe Balbi added 2 commits October 24, 2025 08:37
Signed-off-by: Felipe Balbi <febalbi@microsoft.com>
Signed-off-by: Felipe Balbi <febalbi@microsoft.com>
@felipebalbi felipebalbi force-pushed the switch-to-device-driver branch from 390226b to 073dfeb Compare October 24, 2025 15:37
Signed-off-by: Felipe Balbi <febalbi@microsoft.com>
@felipebalbi felipebalbi requested review from Copilot and tullom October 24, 2025 15:50
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

kurtjd
kurtjd previously approved these changes Oct 24, 2025
@felipebalbi felipebalbi enabled auto-merge (squash) October 24, 2025 16:00
tullom
tullom previously approved these changes Oct 24, 2025
@felipebalbi felipebalbi disabled auto-merge October 24, 2025 16:26
@felipebalbi felipebalbi dismissed stale reviews from tullom and kurtjd via ab83260 October 29, 2025 16:13
Signed-off-by: Felipe Balbi <felipe.balbi@microsoft.com>
@felipebalbi felipebalbi force-pushed the switch-to-device-driver branch from ab83260 to 4de662c Compare October 29, 2025 16:27
kurtjd
kurtjd previously approved these changes Oct 29, 2025
Copy link
Contributor

@kurtjd kurtjd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why it's getting stuck on that ubuntu / 1.84 job though

tullom
tullom previously approved these changes Oct 29, 2025
@tullom
Copy link

tullom commented Oct 29, 2025

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>
@felipebalbi felipebalbi dismissed stale reviews from tullom and kurtjd via 43ee01e October 29, 2025 23:43
@felipebalbi felipebalbi requested review from kurtjd and tullom October 29, 2025 23:59
@felipebalbi felipebalbi enabled auto-merge (squash) October 30, 2025 18:02
@felipebalbi felipebalbi disabled auto-merge October 30, 2025 18:02
@felipebalbi felipebalbi merged commit 9152770 into OpenDevicePartnership:main Oct 30, 2025
12 checks passed
@felipebalbi felipebalbi deleted the switch-to-device-driver branch October 30, 2025 20:47
@github-project-automation github-project-automation bot moved this from In review to Done in Embedded Controller Oct 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BREAKING CHANGE enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants