Skip to content

Merge v0.2#116

Merged
jerrysxie merged 11 commits into
OpenDevicePartnership:mainfrom
RobertZ2011:merge-v0.2
May 22, 2026
Merged

Merge v0.2#116
jerrysxie merged 11 commits into
OpenDevicePartnership:mainfrom
RobertZ2011:merge-v0.2

Conversation

@RobertZ2011
Copy link
Copy Markdown
Contributor

No description provided.

RobertZ2011 and others added 10 commits April 17, 2026 11:02
…penDevicePartnership#100)

Create a struct to allow waiting for interrupts without needing to block
the core controller object. Move interrupt related code into its own
module.
…penDevicePartnership#102)

The previous implementation put restrictions on `wait_any_masked` and
could result in concurrency issues. Also some minor clean-up and
improvements.
Co-authored-by: RobertZ2011 <33537514+RobertZ2011@users.noreply.github.com>
Co-authored-by: Adam Sasine <asasine@users.noreply.github.com>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Felipe Balbi <felipe.balbi@microsoft.com>
Co-authored-by: Felipe Balbi <febalbi@microsoft.com>
…ntity Data, executing Hard Reset (OpenDevicePartnership#104)

Builds on OpenDevicePartnership/embedded-usb-pd#64

---------

Co-authored-by: Copilot <copilot@github.com>
Bumps `device-driver` from 1.0.3 to 1.0.9.

- Updated `Cargo.toml` dependency declaration.
- Refreshed `Cargo.lock` via `cargo build`.
- Certified `device-driver` 1.0.9 as `safe-to-run` via cargo-vet.

Co-authored-by: Felipe Balbi <febalbi@microsoft.com>
Co-authored-by: RobertZ2011 <33537514+RobertZ2011@users.noreply.github.com>
Co-authored-by: Adam Sasine <asasine@users.noreply.github.com>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Felipe Balbi <felipe.balbi@microsoft.com>
Co-authored-by: Felipe Balbi <febalbi@microsoft.com>
@RobertZ2011 RobertZ2011 self-assigned this May 21, 2026
@RobertZ2011 RobertZ2011 marked this pull request as ready for review May 21, 2026 20:51
@RobertZ2011 RobertZ2011 requested a review from a team as a code owner May 21, 2026 20:51
@RobertZ2011 RobertZ2011 linked an issue May 21, 2026 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

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 refactors the Embassy async interrupt handling to split “interrupt processing” (clearing/reading IRQ state from the device) from “interrupt reception” (waiting on signaled interrupt flags), and introduces per-port command-completion signaling plus configurable interrupt-clear timeouts.

Changes:

  • Introduces InterruptProcessor and InterruptReceiver in a new asynchronous::embassy::interrupt module, moving interrupt logic and tests out of embassy/mod.rs.
  • Updates the Embassy Controller to accept a Config (incl. interrupt timeout config), adds command_complete signals, and changes make_parts() to return (Tps6699x, InterruptProcessor, InterruptReceiver).
  • Updates Embassy tasks and RT685S EVK examples to use the new interrupt processor/receiver split.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/asynchronous/embassy/task.rs Updates interrupt task wiring to use InterruptProcessor.
src/asynchronous/embassy/mod.rs Adds controller config + command completion signals; removes old interrupt/wait APIs and returns new parts.
src/asynchronous/embassy/interrupt.rs New module containing interrupt processing/receiving logic and associated tests.
examples/rt685s-evk/src/bin/plug_status.rs Migrates example to new controller constructor and interrupt receiver API.
examples/rt685s-evk/src/bin/fw_update.rs Migrates example to new controller constructor and interrupt processor API.

Comment thread src/asynchronous/embassy/interrupt.rs
Comment thread src/asynchronous/embassy/mod.rs
Comment thread src/asynchronous/embassy/mod.rs
@github-project-automation github-project-automation Bot moved this to In progress in ODP v0.2 May 22, 2026
@jerrysxie jerrysxie merged commit 159ae3b into OpenDevicePartnership:main May 22, 2026
13 checks passed
@github-project-automation github-project-automation Bot moved this from In progress to Done in ODP v0.2 May 22, 2026
@RobertZ2011 RobertZ2011 deleted the merge-v0.2 branch May 22, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

v0.2.0 -> main

7 participants